Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Public Group Label #1

Open
JodieM opened this issue Oct 18, 2018 · 6 comments
Open

Use Public Group Label #1

JodieM opened this issue Oct 18, 2018 · 6 comments

Comments

@JodieM
Copy link

JodieM commented Oct 18, 2018

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
Copy link

SahbaS commented Jan 29, 2019

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
Copy link
Author

JodieM commented Jan 29, 2019

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
Copy link

SahbaS commented Jan 29, 2019

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

But yes [Lead].Id worked perfectly!

@mshanemc
Copy link
Owner

This warms my heart.

@bobbybuntin
Copy link

bobbybuntin commented Apr 4, 2019

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
Copy link

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

recordID>Field Reference>[Opportunity].Id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants