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

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.


Thank you Brad. Works like a charm!


Hello Brad,


I want to pass the sys_id value for a reference field stored in one of the catalog item variables as the parameter, but this does not seem to be working for me.


The value for I set for the parameter is: "current.variables.myvariable" where my variable is basically a reference to the user table. Is there something wrong with how I am specifying my parameter?




Greetings,




Eloy Bayona


Hey Eloy,



No need to throw the .variables. portion in there.


You can just type in "current.myvariable" and that should throw you the sys_id.