Advanced workflow data enrichment
Hi All - I want to do some advanced data enrichment for all targets in a workflow that ultimately requires a decent amount of complex Javascript. I have two large switch + if/then/else statements that populate three columns based on Recipient attributes (two text and one bit.ly link) that get sent on the email or SMS.
Right now, I am using a JS queryDef select to get all records then iterate over them one by one to update the corresponding fields for that target. This then updates the temporary schema in the workflow.
This is an issue for two reasons:
- Over 10,000 records needs to page the queryDef as the maximum individual select can only be 10k
- At some point over 10k records you run out of JS memory (even after increasing the JS memory)
Adobe Support says its a bad practice, but haven't suggested an alternative as this is probably Consulting
Is there a better way to do advanced enrichment during a workflow with >10k records?