Hi Jennifer,
Good Day! This is Brian from the SuiteBuilder team and I will be assisting you with this case moving forward.
I have reviewed the case and If I understood the concern correctly it would be as follows.
Concern:
It seems that the issue happens specifically for the workflow fields having List/Record types and the Store Value = F
When the Store Value is set as TRUE, there are no issues
When the Store Value is set as FALSE, we're encountering an "Invalid Reference Key" because the value being used is a decimal
Investigation:
Upon reviewing the script, and the Custom Action, we're using the "Store Result In" field on the Custom Action component to set the value of the field.
Given that this is generating an error, we've tried to use a different approach. Instead of setting the value of the field via the "Store Result In".
I've made a copy of the script, wherein the we'll set the value of the field using the function nlapiSetFieldValue.
Updated the Script Record and removed the parameters
Results:
The workflow was able to set the value of the workflow field
The workflow was also able to use the value of the field and use it as a parameter for other actions without any errors.
Assessment:
We do agree that there is a disconnect on the functionalities. However, given the business used case for this case, the urgency level for this concern would be less likely to be prioritized.
That said, what I recommend for now is if we can just update the scrip and utilize the nlapiSetFieldValue function to set the value of the workflow field instead so that we can set the property "Store Value = F" on our workflow fields.
Kindly let me know your thoughts on this.
Regards,
Brian