[SalesForce] Process builder Create Product and Pricebook Entry at the same time

We are trying to automate our product creation process, I have created a new object called internal request which has all the product fields we require and once an approval process is approved it sets off a process builder to create a product, The problem i am having is creating the pricebook entry straight after the product as i can't find a way to get the product link.

Create Product

This part is fine, its when i need to create the PBE, which i already have the list price and price book from the previous internal request object

Create PBE

any ideas would be hugely appreciated thanks!

Best Answer

You can't do this purely in Process Builder. Instead, you'll need to use either an auto-launched flow, an Apex invocation, or consider just writing a trigger directly. Keep in mind that using a flow might run into governor limits if you decide you need to do batch updates in the future, so keep this mind.

Related Topic