We have need to update a semicolon separated list string that is within a single text property by removing multiple values from the string.
I’ve gotten as far as removing a single value using a workflow with the following steps:
- Copy multi-checkbox property to a single line text property. (puts it in as a semi-colon separated list)
- Use Format Data step to “replace” the text string value with nothing. replace([enrolled_object.marketing_newsletters_restore2],“daily_update_memphis;”,“”)
- Set the same single line property with the new value from the previous format action.
- Use Custom code action to output the single line text value as an enumeration.
- Set intial multi-checkbox property with the new value from the previous custom code enumerated output.
The above works, but I can’t figure out how to “replace” more than one value in step 2. I’m sure that is possible using custom code, but I’ve not been able to figure it out.