[SalesForce] Visual Flow fail: required field missing (yet I have required field)

I'm working on the Trailhead Visual Workflow unit, and my flow keeps failing and I'm not sure why. The error message I get says, "caused by element : FlowRecordCreate.New_Opportunity
caused by: UPSERT — UPSERT FAILED — ERRORS : (REQUIRED_FIELD_MISSING) Required fields are missing: [StageName] — for SFDC record with ID : null," but clearly you can see in the photo I have the Stage Name field. What am I missing? Thanks!!! Now adding my input screen as well. [inputScreenFail] Now adding prospecting choice screen. prospectingchoicefail1

trailheadFail

Best Answer

The stored value needs to be assigned to the Prospecting choice. Think of the Label/Unique Name as a variable name and "Prospecting" as the value inside of the variable. I've seen conventions where people put a c_ in front of the variable name to help differentiate what type of variable it is.
So on the entry screen, it will check what is inside the variable and assign it to the stage as a default, currently it is assigning null since stored value is empty.
Default Stage Choice variable

Related Topic