I have a question regarding ServiceNow activities in the Studio. I am unable to use the ServiceNow app scope, as I’m unable to connect to SN learning instances, therefore I’m forced to use the activities that use the connection established in Orchestrator (which works fine).
Aaanyway, I’m trying to get a single record or a list of records from a chosen ServiceNow table. I’m using activity “list all records” and “get record”. The output of those activities is a variable of type “incident” or “incident_task”.
The question is: how can extract data from that variable such as records sys_id? Is it possible at all?
There should be properties to these variable of type “incident” or “incident_task”. Check the properties while you are in Debug mode and data has been retrieved in it.
I figured it out–when doing “list all records,” go to the Properties pane, then click the plus sign to the right of the “list of incident” output field. Then choose “switch to data table” and specify/define a table object to receive the records. Then you can work with the query results–I have no idea how the entity collection would be usable in this context.