Getting Invalid Base URL in Flow of REST step.

Thej1
Tera Expert

Hi,

 

I have created a REST message and a method. Trying to call it in Flow through 'Import REST message' in the REST action. While saving it am getting the error as below.

Thej1_0-1740592614711.png

But the end point is perfectly working fine. Tested from the REST message and also tested it in the flow from 'Test REST step' as below in the screenshot.

Thej1_1-1740592829667.png

 

I think the issue is of having ? in URL. Could you please let me know any work around for this ?
@Dr Atul G- LNG @Ankur Bawiskar @Kieran Anson 

 

1 ACCEPTED SOLUTION

Thej1
Tera Expert

Found this article https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0781586

I modified the URL to https://itsm-testportal.test.at/api/arsys/v1/entry/HPD:IncidentInterface_Create

and added the fields in Query parameters of REST Message as below:

Name - fields

Value - values(Incident Number)

 

It worked. Getting response as well as be able to save it flow.

View solution in original post

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Thej1 

Look like product issue, better log a Now Support case.

 

https://www.servicenow.com/community/itsm-forum/getting-error-invalid-uri-when-passing-query-paramet...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Thej1
Tera Expert

Found this article https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0781586

I modified the URL to https://itsm-testportal.test.at/api/arsys/v1/entry/HPD:IncidentInterface_Create

and added the fields in Query parameters of REST Message as below:

Name - fields

Value - values(Incident Number)

 

It worked. Getting response as well as be able to save it flow.

I found this, but did not share by assuming there is noting with mid   server 😞 

 

Good you got the answer.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************