em fev 10, 20215:44 PM - editado pela última vez em mai 10, 20215:15 AM por jbogaert
Colaborador(a)
Finding associations and then adding associated records to a workflow
resolver
Hey Guys,
I have a fair amount of experience with Python, but not a ton with JavaScript so I'm kind of muddling my way through this for the time being.
I'm trying to enroll a custom object record in a workflow, get the associated contacts, and then enroll those associated contacts into a contact based workflow.
So far I've been successful in enrolling the record, and finding the associated contacts.
Where I'm getting stuck is creating an array of the contact ids so that I can loop through them and add them all to the workflow.
Here is my code as of now (I'm not trying to address the workflow enrollment for the contacts yet):
Finding associations and then adding associated records to a workflow
resolver
Hello, does this work for me?
My custom objects is: "Group"
I already have this associations:
Tickets --- Contacts
Contacts---Group (custom object)
I need:
Tickets ---Group (custom object)
What happens:
In my conversation workflow, a ticket is created with the corresponding contact association. This contact has the objects "Company" and "Group" already associated on it.
The problem is that this created ticket is not associated with the custom object "Group".
What i'd like to have:
I'm not a developer, but what i need is a code or something that associates this ticket with my custom object "Group" (the "Group" is associated in my contact).
Finding associations and then adding associated records to a workflow
resolver
My friend, thank you. This is awesome, Ive been wondering how to get an array list from a single objectId and the xxx.map and xxx.forEach looks to be the key here, so thank you for posting this.