You need to sign in to do that
Don't have an account?
Dave The Rave
price book entry object - automation update field
Price Book Entry object - update custom field when record created or edited
Normally, I would start with the process builder. However, the object is not available in the process builder. So I checked Flow and it was still not available.
How can I change a custom field value based on a specific criteria when a record is created or edited???
Can I do this without using APEX code?
Thanks,
Dave
Normally, I would start with the process builder. However, the object is not available in the process builder. So I checked Flow and it was still not available.
How can I change a custom field value based on a specific criteria when a record is created or edited???
Can I do this without using APEX code?
Thanks,
Dave
Unfortunately, you cannot do without using apex code or trigger.
You are not allowed to write trigger on PriceBookEntryObject but you can try using apex class.
You need to think of using product2 fields or some alternate approach which can indirectly update pricebookentry field.
Below is the sample snippet to update pricebook entry when product is updated
References:
https://trailblazer.salesforce.com/ideaView?id=08730000000XnicAAC (Idea link)
https://salesforce.stackexchange.com/questions/235089/update-field-with-a-trigger-in-custom-object-from-pricebookentry
https://sfdcfanboy.com/2017/08/27/a-tip-a-day-11-workaround-for-pricebookentry-triggerworkflow/
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar