Associating by property value with multiple values

Hello,

I’m working on a workflow that will take a look at the Campaign ID field on the contact object and if the value matches the campaign record ID to automatically associate it to the respective campaign. The issue I have is a contact can be associated to various campaigns do this field has numerous IDS sepreated by a comma. How can I get the workflow to look at this and associate to all values in this field?

Hi @cclark2,

This won’t work with a comma separated field, at least if you’re planning to use the “Create associations” workflow action. If you want to stick with this field, you need a custom coded workflow action and leverage the Associations API.

Alternatively, change your process so that you have a field for last campaign ID (and the change in this field triggers your workflow and thus association) and this last campaign ID is then appended to the comma separated list.

Best regards!