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.

Dotwalking in a script include

gunishi
Tera Guru

Hi there, 

 

So sorry for the vagueness, having to omit company data.

 

If I have a field on the form, let's say 'name', can I pass this info into a function in a script include and then dotwalk from it? For example:

exampleFunc : function(name){
    approver = name.contacts.approver

}

 

If this would not work, do I need to use a query and then dotwalk from there? Many thanks!

 

Kind regards, 

G

 

5 REPLIES 5

gunishi
Tera Guru

Hi @Peter Bodelier @Community Alums @subhadipkarma @OlaN 

 

Thank you all for your help. You've all given me brilliant advice and a great starting point. 

 

Kind regards, 

G