Hi!
In our Contact Object we have a single-line text property called Company_Qcode in which the values can look like this:
{SECLNT10034182}
or… like this:
{SECLNT87247981,SECLNT89752329}
If there are mutliple ones like in the last example, is it possible to split these based on the “,” separator and place each in its own separate property through custom code? So we’d end having 2 properties like this as well:
Company_Qcode 1 = SECLNT87247981
Company_Qcode 2 = SECLNT89752329
The reason we need to split them is that we use these values as the assocation key across objects and its records through association workflows.
Any help would be incredibly appreciated!
Thanks
Hi @Andreas11,
If you have Operations Hub Professional or Enterprise, this can be achieved either with the format data workflow action (specifically the regex replace function) or with a custom code action.
In both cases, generative AI (like ChatGPT) should be able to assist with the actual code – although much less code will be needed for the regex_replace. The downside of regex_replace is that you would need one action per code – which might make it a bit unflexible.
Best regards
Hi Karsten,
You’re an absolute lifesaver, got it to work just like I needed it to!
Thank you so much!
