function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
GeorgePGeorgeP 

Can Process Builder get the ID of a row it just created?

Hi,
If a Process Builder flow creates a record, can it return or retrieve that row ID or Name in the same flow so a subsequent action inthe same flow can log something like 'PB flow ABC created row XYZ' ?
P.S., why isnt there a category for Process Builder flow questions??
NagendraNagendra (Salesforce Developers) 
HI George,

Sincerely regret the inconvenience for the delayed reply.


Apparently, it can do so, just like Apex - no lookup required.

I created a simple flow to create a task using a fast create.

After creating the task, I added a screen and displayed the task ID.

It worked as is - no lookup was needed to get the task ID after creating it.

I also tested w/ an old-fashioned record create an element, and it worked fine, as long as you assign the ID to a variable using the option presented in the record create dialog.

For more information, please refer to the below link.
http://salesforce.stackexchange.com/questions/124524/can-process-builder-get-the-id-of-a-row-it-just-created/125707

Kindly mark it as solved if it helps.

Best Regards,
Nagendra.P