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. [] Now adding prospecting choice screen.
1
1 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.
{!Opportunity_Stage}
is the input field in your page. Do you really have all the required fields that Salesforce expects when inserting a record using the proper syntax?{!OneMonthFromToday}
is notOpportunity.CloseDate
.