Hello,
I would like to create a property that collects all Wistia Media IDs a contact may view. This would be similar to the Salesforce Campaign ID that collects all campaigns a contact is associated with.
Is this possible? I couldn’t workshop a solution but maybe I missed something.
Hi, @elisestieren
Thanks for the interesting question. I have some thoughts, but no answers.
My first question is — how will you be adding/updating values for this property? A workflow? Via an endpoint?
Other thoughts:
- The property — Salesforce Campaign ID is a multiple checkbox property
- The Dev doc for multiple checkbox properties doesn’t mention appending specifically, but it does note that semicolons must be used to separate multiple values — How do I set multiple values for checkbox properties?
- The catch will be, you’ll need to have the value added to your Property before you append an Object record
My example:
I added the value of “Bird”
I tested using both of these endpoints to update (append) an object record:
I set up my body like this:
{
"properties": {
"ultimate_pet": ";Bird"
}
And returned a 200OK for both requests.
We can see on the Contact record that the value of “Bird” was appended and nothing was overwritten.
Additionally, I noticed a comment in an Ideas thread that reminded me we can do a similar thing via an import, i.e. using the format of ;bird.
Please tell me if this is helpful or especially if it’s not. Adding any details like steps you’ve tried helps the community better understand how they can assist.
Have fun building! — Jaycee
Thank you Jaycee, I think I hoping for less manual solution where i didn’t have to add the Media ID everytime…I was hoping it could be captured automatically (or with script) similar to the campaign id field.
Still I can definitely set-up the field with a picklist and add to it whennew media is published.