How to use "Cloud Rest - Add Response to Context"

Aidan
Tera Guru

Hi

I'm trying to build a new pattern to discover some Azure resources.  I've got the pattern working up to a point, but now deciding how to call the API and parse the results.  I've looked at the existing Azure patterns and tried to copy the model but its not working when using the "Cloud Rest - Add Response to Context" step.

If I use the "Cloud REST Call" step then I get the response back okay, however using the Add Response to Context gives me the following error;

Test failed: Custom operation Cloud REST - add response to context failed to execute script due to Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: Cannot convert null to an object.. Check the discovery logs for more details.

Cannot find how to use this step and then the subsequent parse columns.

Any help appreciated...

1 ACCEPTED SOLUTION

ServiceNow Tec2
Mega Sage
This has been resolved by ServiceNow Technical Support. Please refer to KB1009041 for more information.

View solution in original post

5 REPLIES 5

damianfell
Tera Guru

I'm also seeing the issue trying to write a new API call - does anyone have a copy of the now deleted knowledge article? (I mean really why do service now delete stuff that's referenced externally?).