You need to sign in to do that
Don't have an account?
Marco Pollastri 1
call a flow via a trigger
Hi,
I am trying to call a Flow with a trigger when the 'clone price book' field check box in the Pricebook object is marked as true.
trigger Clonepricebook on Pricebook2 (after insert) {
for(Pricebook2 Price: Trigger.new){
If (Price.Clone_Price_Book__c == true ){
flow.Interview.Clone_Client_Price_Book myFlow= new Flow.Interview.Clone_Client_Price_Book; }
}
}
Unfortunately, Salesforce does not allow to create actions from price book
So i think the trigger is the only solution to recall the Flow.
Thanks
I am trying to call a Flow with a trigger when the 'clone price book' field check box in the Pricebook object is marked as true.
trigger Clonepricebook on Pricebook2 (after insert) {
for(Pricebook2 Price: Trigger.new){
If (Price.Clone_Price_Book__c == true ){
flow.Interview.Clone_Client_Price_Book myFlow= new Flow.Interview.Clone_Client_Price_Book; }
}
}
Unfortunately, Salesforce does not allow to create actions from price book
So i think the trigger is the only solution to recall the Flow.
Thanks
kindly find the solution
If you find your Solution then mark it as a best answer.
Thanks and Regards
Suraj Tripathi.
Thanks for your answer,
I receive this error message on line 4: Unexpected token';'