Howdy,
I'm responsible for deploying from sandbox to production several complicated WorkFlows that have Set Field Value actions setting a static List/Record value. The downloaded XML of course doesn't have the internal id (or external id!) of the records, rather it has "[ACCOUNT_SPECIFIC_VALUE]". You can't deploy the objects like this, the validation system will catch and block it (good).
Putting aside the fact that setting static record reference directly in workflows is ill-advised, I wanted to ask how any of you are dealing with this if you're in the same situation?
My solution I'm running with right now is to use a PowerShell script with xmlstarlet to edit the object xml files and set the values. It works great, lots of work up front to set it up, but at least it's repeatable.
Some other thoughts I had on the subject: [LIST=1]
[*]I thought it may be cleaner to use Workflow Fields to set these static values, then use the fields in the Actions, but this is only a marginal improvement.
[*]Utilize a "data provider" custom Action Script that would take some data necessary to execute the business logic to identify the appropriate record and return to the workflow.
[/LIST]
For NetSuite/Gerson: [LIST=1]
[*]It is technically possible to utilize the internal ids, to not replace them with [ACCOUNT_SPECIFIC_VALUE]. Are there any plans to allow this as an option? If I know my sandbox is fresh and has parity with production, why should I not be able to pass around internal id references?
[*]OK, so let's say you don't like the idea of supporting option #1 - what IS the proposed best practice for scenarios where you must statically set a record reference?
[/LIST]