You need to sign in to do that
Don't have an account?
Bahtiyar Ishkabulov
Move Opportunity Product record to the Cancelled Opportunity Product
Hi everyone,
We created custom object Calcelled Opportunity Product (CancelledOpportunityLineItem__c) where we want to store opportunity products, that were initially present in customer's inquiry but then removed from it for some reason (master-detail relationship with Opportunity object). Now we want to have a button "Cancel Product" on the standard Opportunity Product's detail page that will move the product to the Cancelled Opportunity Products (delete the record from the OpportunityLineItem object and create new record in the CancelledOpportunityLineItem__c object). Also we want a separate window to appear before that, where user will input cancelling reason. Can anyone explain me, wich Salesforce platform tools should we use for this task?
We created custom object Calcelled Opportunity Product (CancelledOpportunityLineItem__c) where we want to store opportunity products, that were initially present in customer's inquiry but then removed from it for some reason (master-detail relationship with Opportunity object). Now we want to have a button "Cancel Product" on the standard Opportunity Product's detail page that will move the product to the Cancelled Opportunity Products (delete the record from the OpportunityLineItem object and create new record in the CancelledOpportunityLineItem__c object). Also we want a separate window to appear before that, where user will input cancelling reason. Can anyone explain me, wich Salesforce platform tools should we use for this task?
You can use Flows for this. Let me know if you have any doubt while creating it.
Thanks.
I created a flow, but how can I add a button on the Opportunity Product's detail page, that will run this flow and send the record id as a parameter to flow's variable?
You can add a Javascript Button and call the flow using URL
Please mark this best and like the answer if you find it useful.
Thanks,
Jolly Birdi
We use Lightning, so is there any alternative to javascript button in this case? Thank you very much for help!
For Lightning You need to create an action on Opportunity and from there you need to fetch the details of OppLineItems and then call the flow for selected records.
Thanks.
Flow Would be better if it would be for the classic. In the lightning experience you can pass the OpplineItem id to class and directly create a new records as you want. It would be easiest way for this.
Please like and mark it helpful, If you find it positive.
Thanks.