1

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!

1
  • I think you may not be able to do with just Process Builder but might need to have an autolaunched Flow called by the PB as that will be able to pick up the Id of the product to insert into the pricebook.
    – Dave Humm
    Sep 4, 2017 at 15:12

1 Answer 1

2

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.

1
  • Went with the trigger method as it allowed me more freedom with a few other fields Sep 19, 2017 at 13:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .