I am attempting to create an automation that populates opportunity contact roles when contacts are selected by the user creating the opportunity.
Upon pushing the flow live, I am getting the following error:
An error occurred at element Create_Contact_Role_for_Ecommerce (FlowRecordCreate).
INSERT — INSERT FAILED — ERRORS : (REQUIRED_FIELD_MISSING) Required fields are missing: [OpportunityId, ContactId]
what do I need to add the Variable Fields so they are no longer missing?
Best Answer
You can create SObject variable like
ContactObj
and assign that value as default to theEcommerceContactId
variable.And before creating
Opportunity Contact Role
you should make sure the values ofOpportunity Id
andContact Id
must be available