mshanemc / roundRobinProcessBuilder

27 stars 10 forks source link

Value of Incorrect Type #2

Open stuff99 opened 5 years ago

stuff99 commented 5 years ago

This is exactly the solution I am looking for, thank you all for the work to create this.

I am running into an error though. I use this on our CampaignMember object to populate a lookup field to the users object with an API name of BDR__c and label of BDR Assigned . The error his here:

An Apex error occurred: System.DmlException: Update failed. First exception on row 0 with id 00vQ0000005QthIIAS; first error: FIELD_INTEGRITY_EXCEPTION, BDR Assigned: id value of incorrect type: 00G36000002SLCREA4: [BDR__c]

Here are the values that I have defined: https://cl.ly/aca02a in the process builder. I have read through the help docs but can't see what I would need to do differently. It would appear that it is pulling the ID of the group rather than the individual but wonder if you have any insight on it. Thanks!

stuff99 commented 5 years ago

Update on this, if the groups are defined explicitly (by defining by user) it works. If it is defined by role, it doesn't.

mshanemc commented 5 years ago

Thanks for sharing the update. I haven’t done anything other than public groups of users with it.

On Mar 29, 2019, at 6:23 PM, stuff99 notifications@github.com wrote:

Update on this, if the groups are defined explicitly (by defining by user) it works. If it is defined by role, it doesn't.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

cesarhb commented 5 years ago

@stuff99 thanks this was helpful - I ran into the same issue when I was assigning by Role into the Public Group. Changing to Users resolved the issue.

I do have a quick - unrelated question - are any of your users getting system generated lead assignment emails with this package?