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.

Link Type URL (from Arguments) not working

akaupisch
Kilo Guru

I feel like I'm in the twilight zone on this one. I've tried a multitude of ways and can't seem to get it to work. Ultimately, I'm trying to bypass the 'new record' feature and instead use a script include to generate the record, then return the ID so I can navigate to it.

Here's the Module:

2017-10-17_0-39-46.png

Here's the script include for now:

2.png

Here's the URL that is returned when I click the module:

3.png

And the page simply says 'Record not found'...

if I replace the javascript:createKTLO() above with the sys_id, it loads just fine.

I mean, it's absurdly simple as I'm not even trying to do the logic behind it. What am I missing?

9 REPLIES 9

carolina2
ServiceNow Employee
ServiceNow Employee

Have you try check the client callable check box?


Please note that in your screenshot, the script is not client callable.


I thought I had tried that combo, but I'm an idiot... anyway, now I have an issue with putting actual code in there....



new MyTimeCardUtils().createTimeCard(gs.getProperty('myproperty'), null, 'project_tasks',   gs.getProperty('myproperty1'));



I know this code works as I have it on a UI action and it generated everything fine and I logged the sys_id... MyTimeCardUtils is client callable as well


Have you put javascript: infront of the function call. I do not see any reason why this wouldn't work.