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
Aaron Persich 9Aaron Persich 9 

Generate Contract and Assets with a Flow

Hello,
 
I have created a Generate Order/Contract button on the opportunity which when selected it will create the Order, Order Products, Contract, and Assets.  This works fine but management would like to only create Assets if the Opportunity Products have a Product Type as software.  We sell both Hardware and software products and the flow should only create the Software Assets.
 
I have tried to add a decision element after the loop through the Opportunity products when I test no Asset being created.  I am not sure what I am missing.

User-added image
User-added image

User-added image

User-added image

Any help is much appreciated.

Thanks,

Aaron