Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Parameters for Events in Workflows

Bradford Shelle
Kilo Guru

Got a quick question about creating events with a workflow.

So I'm creating a workflow that has several events in it. I'm trying to pass some parameters through the event, but I feel like a dummy because I can't get the parameters to work correctly. Everything I've tried to far just returns "null" in the event log.

The question is, what's the correct syntax for parameters in a workflow for passing fields? I thought it was ${field_name} but no luck...

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

I'm almost positive it's current.fieldname to reference a field on the requested item although you might also try curly brackets.


View solution in original post

5 REPLIES 5

Hi Eloy,



If you haven't already gotten it working, try adding ".toString()" to the end of a reference field/variable to get it to spit out the sys_id.



i.e., current.variables.myvariable.toString();




-Brian