- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
I'm getting the flow action error while running and also I can't able to publish the flow
I filled the details for the required field though I get this error. I can't able to debug where it goes wrong. Could someone help?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
both name and description are string type.
Why are you storing JSON string in it from script step?
1st script step is not required.
Simply use the name and description directly from input in REST Step.
Seems since you are converting string to JSON string and then using REST Step body, it's failing with 400.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
so the above confirms what I said.
Issue is with the script step failing because of that json key not available
did you add log and see what came in response body OR you can check the previous step output and it will tell you the responsebody
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday - last edited Thursday
The previous step response body receives the error as
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
so the REST Step has error with 400.
It means bad request.
Something is not passed properly in the API request and hence it's failing.
Because REST Step is failing you are not getting any response body and hence JSON parsing fails.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
not sure. while I test Rest step I was getting 200 status code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
both name and description are string type.
Why are you storing JSON string in it from script step?
1st script step is not required.
Simply use the name and description directly from input in REST Step.
Seems since you are converting string to JSON string and then using REST Step body, it's failing with 400.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader