REST step in Flow Designer Actions does not work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2023 09:01 AM - edited 09-01-2023 06:13 AM
I got a below error on "D CONSUMER:Test the Action" on Lab 4.2
on ServiceNow Administration Advanced On Demand [日本語].
Invalid uri 'https://xxxxx-publisher-001.lab.service-now.com/api/now/table/incident?sysparm_query=ORDERBYDESCsys_created_on&sysparm_fields=number%2Cstate%2Cshort_description': escaped absolute path not valid
How can I resolve this error?
***Memo1***
I got a expected result successfully with curl command below:
curl --user webservices.connection:xxxxx "https://xxxxx-publisher-001.lab.service-now.com/api/now/table/incident?sysparm_query=ORDERBYDESCsys_created_on&sysparm_fields=number%2Cstate%2Cshort_description"
***Memo2***
Firstly, I got a below error on Lab4.2:
Invalid uri 'https://xxxxxx-publisher-001.lab.service-now.com/api/now/table/incident?sysparm_fields=number%2Cstate%2Cshort_description%EF%BB%BF&sysparm_query=ORDERBYDESCsys_created_on%EF%BB%BF': escaped absolute path not valid
But I resolved the problem of %EF%BB%BF .
*** consumer instance environment ***
Build name: Tokyo
Build date: 09-16-2022_1610
Build tag: glide-tokyo-07-08-2022__patch1-09-01-2022
Because above curl command work successfully, publisher instance must not have any problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2023 11:12 AM
Hi there, I believe there maybe a small bug in the REST Step. You create the REST Step to create the API call. You put in the paramaters:
(i) Base URL
(ii) Resource Path
(iii) sysparm_fields
(iv) sysparm_query
I believe in error at the end of the parameters is placed a hidden "space" which is causing a problem with the URL. The solution is to go to each parameter and at the end use the 'backspace' key on your keyboard. It should delete these hidden spaces. If the parameter remains in tact after the use of the backspace, you know you have deleted these hidden spaces. Try that. Darren
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2023 01:40 AM - edited 09-01-2023 06:15 AM
Thank you for your reply.
I tried "to go to each parameter and at the end use the 'backspace' key on your keyboard",
but it just deleted last character.