Hi All, I'm trying to follow a simple SuiteAnswer ...
# suitescript
m
Hi All, I'm trying to follow a simple SuiteAnswer that give steps for using a workflow to trigger a script to populate a field (this field is not available via mass updates, workflows, or CSV). I at least have it running but it's saying that the wf_populateField is not defined. Any of you script savvy folks know what I'm missing? function wf_populateField() { nlapiSetFieldValue('automaticallyapplypromotions','true'); }
b
share what your workflow action script looks like
ill be looking for the script file to match whatever file your code is in
the function field to match the name of the function in your code
and for the deployment to be deployed to the correct record with a deployed status and proper script audience
m
message has been deleted
Copy code
function wf_populateField() {	
	nlapiSetFieldValue('automaticallyapplypromotions','T');
}
is the actual script
The script is deployed to SOs and the WF is set for SOs. I made it past the audience error.
message has been deleted
b
and the deployment
m
message has been deleted
b
what does your error look like
m
message has been deleted
b
what does your script file look like
the log suggests there is more to the file than you shared
m
It's just this...
message has been deleted
Is there supposed to be something in the first set of parantheses?
p
Have you got another file in the file cabinet with the same name that you could have picked by accident?
m
It doesn't look like it. This is a new feature I'm working with here as well. Just in sandbox.
b
try editing the file from the script record
m
message has been deleted
b
everything looks good so far
are you sure this is still a recent error
you might want to try setting a more visible field as a test
m
You mean like a field that could also be done via one of the other options?
I haven't been able to get it to run again actually...sigh
No, actually it just did! First time running since I changed 'true' to 'T'. And it worked!!!
Thank you so much for bearing with me here. Never actually created a script before even if it was just a copied version.