Hi @TH7 Thanks for reaching out. I have a few questions to help the community better understand your project.
Are you wanting to get a count of Custom object records for a Contact?
And return that as a value for a custom Contact property?
Have you already looked into the Search API? If not, I’d suggest looking at how you can leverage it to query a Contact for its associations, for example.
I’ll also leave this here so other community members can offer some general suggestions.
Just like the company object has “number of associated” contacts, I would like to have “number of associated [custom object records]” in a custom contact property.
Regarding the Search API, could it be used in a custom coded workflow action? I thought I could only reference private apps.
On the custom object, create a calculated property called “Power of One” (this is how I’ve heard it referenced elsewhere) that’s a custom equation and always equal to “1”.
On the company object, create a calculated property called “Number of Associated [custom object]” that’s a Count equation that counts up all the 1’s of the “Power of One” porperty.