mshanemc / roundRobinProcessBuilder

27 stars 10 forks source link

Use Public Group Label #1

Open JodieM opened 5 years ago

JodieM commented 5 years ago

Just a note for anyone using this. Firstly, even though this is marketed as a FLOW solution, use it in Process Builder as it says in the Readme here. Secondly, use the Label of the Public Group, not the Group Name when you pass in the value into the group name parameter.

Otherwise you will get a List Index Out of Bounds error.

SahbaS commented 5 years ago

Hey Jodie,

Did you manage to get this working? I followed the steps however, what was the guide referring to when it wants the RecordID that is required? what recordId does it want, I have tried the Public Group ID and the lead record type Id but are getting hit with PB erros.

JodieM commented 5 years ago

Are you referring to the first value you enter - there are two values to enter to run the Apex from a Process Builder. The Record ID and the Public Group Label.

The Record ID should be a Field Reference to the ID of the record you are calling the PB from. So if the Process Builder is on Lead then in the Set Apex Variables for Record ID the Type should be Field Reference and the Value should be [Lead].Id - but you use the lookup to find the ID of the record you are calling the Apex from.

Send me a screen shot of where you are lost if that doesn't help.

SahbaS commented 5 years ago

Great Stuff Jodie. Worked like a charm, i was struggling to figure out which ID!

But yes [Lead].Id worked perfectly!

mshanemc commented 5 years ago

This warms my heart.

bobbybuntin commented 5 years ago

Also, be careful how long your public group developer name is. I got an unhandled apex exception because the developer name of my public group was too long. The package concatenates the public group developer name with the object developer name in order to store a custom setting tied to the transaction. So if your object has a long name and your public group has a long name, you may get an apex exception.

fmorgan-iccu commented 3 years ago

just to clarify...the record ID needed is the record type id? of do you just put

recordID>Field Reference>[Opportunity].Id