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
NevDevNevDev 

automatically converting a sold product to an asset

When I add a Product to an Opportunity and change the stage to 'Close Won'. How can I automatically convert that Product to an Asset?
Gururaj BGururaj B
you can create "after update" trigger on Opportunity. Check if the status field is changed. Get all the child products and their information like product id, product name etc.. and create Asset record corresponding to each products for that opportunity with all other required fields on Asset to maintain the relationshiop with Account and Opportunity.
Adel GergabAdel Gergab
Gururaj B, Can you provide the steps on how to do that?