In a Condition on a Workflow in SDF, the Validatio...
# sdf
a
In a Condition on a Workflow in SDF, the Validation is complaining when I replaced an {ACCOUNT_SPECIFIC_VALUE] with the internal ID of a custom form, which made sense to me since this condition was about the STDBODYCUSTOMFORM field:
Copy code
<parameter>
 <name>Transaction Form1</name>
 <selectrecordtype>-171</selectrecordtype>
 <value>184</value>
</parameter>
--
Copy code
Details: The Transaction Form1 condition builder parameter in the workflowaction2365 setfieldvalueaction contains a value, 184, that is not valid for the -171 selectrecordtype.
What kind of value is it expecting instead?
a
apparently it wants the name? this is from the only WF.xml I have in sdf
Copy code
<parameter>
    <name>Role1</name>
    <selectrecordtype>-118</selectrecordtype>
    <value>ADMINISTRATOR</value>
</parameter>
a
That's a constant. I guess for customform condition parameters, it's looking for something like [scriptid=custform_123_ACCOUNTNUM_456]
a
is the custom form part of your sdf project?
a
well no it's referenced in it actually, in the condition for a Set Value action
a
oh then yeah you can just use scriptid reference
i would think that works
if the form isn't a part of the project, then it would need to be listed as a dependency, in the deploy.xml
to be able to use the [scriptid=xxx] reference
a
Okay that did the trick, thanks 🙂
👍 1
I just remember trying to do that before and never finding a way to get the validator to accept it, but it worked this time.
🙌 1