How to get the Status code from Flow action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 04:30 AM
Hi Team,
I am using Rest message in flow action and getting external site responses to show in virtual agent successfully.
The challenge here is the https status code is showing in virtual agent. please find the below screenshots.
1.
2.
3.
4. In Virtual agent topic:
5. Response in VA:
Thanks
Anil!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 04:34 AM
Hi @AnilM99 ,
use the below code :
var httpStatus = response.getStatusCode();
outputs.status_code = httpStatus.toString();
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 05:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 08:38 AM
Hi team,
finally it's working, the issue is my Flow action is failed, i created new action and add my script it's working now
Thanks!