The CreatorCon Call for Content is officially open! Get started here.

How to cross scope "Scripted REST Service"

chanikya
Kilo Sage

Hi All,

I request you please help me on below concern

We have Scripted REST Service(GET)- sending Incident data when request comes, Some times Successfully Data passing , some times going to else part & sending  error "No data found" to other party.

When I checked Transaction logs, "Origin Application" showing different scopes for same 'Scripted REST Service",
some times "Customer Service",
Some times "Global,",
Some times "Human Resource",
some time "Guided Tour"
is this Problem ? why for same Scripted REST Service" different scopes showing in "Origin Application" columns. ? sometimes successful, some times Error Message ?


chanikya_0-1755747228325.png

 

If this is because of lacking of crossscoping ? 

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

@chanikya 

Scripted REST API is created in which scope?

it should not happen.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Scripted REST API in Global  scope.

Not sure why it is behaving like that. please let me know how can I fix it please.

@chanikya 

and what is that scripted REST API doing?

what incoming request is coming and what response it's giving?

Why your Scripted REST API is in HR scope when you are dealing with INC?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

not in HR, Scripted REST API in Global .
we don't have any script include and flows, it's simple GlideRecord record in Scripted REST API.

users from other tool they will search with User ID, scripted rest api will return user related incidents details that's it. 

but not understanidg why different scopes showing under "Origin Application" column.