function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Gary Singh (BlackBeltHelp)Gary Singh (BlackBeltHelp) 

How to create a case from opportunity using visual workflow

Wonderful people,

I am working on a requirnment to populate a Case from Opportunity records page via Custom button. For this I have created a simple flow for that which references the fields on Opp, however i get error while using it.

Configuration looks as under: 

Custom button on Opportunities layout

Referencing Owner ID for the Opp
Here i am unable to get the Opportunity Contact ID so referenced OwnerID

Create record criteria on Flow
Formula field
Error log

From the looks of the logs I can make out that it is User record can not be passed to Case Contact lookup as the ID will never match, therefore created a formula feild to fetch the contact ID refer it on the flow, however the value is always blank.

Please suggest as what i am missing, or may be a better way to accomplish this.

Thanks