How to declare true/false value dynamically from endpoint url in HTTP Query parameter in rest messag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 01:45 AM
Hi Team,
need help
How to pass/declare true/false value dynamically from endpoint url in HTTP Query parameter in rest message.
End point url:
by using the same url getting both active=true and active=false records but when i tried in rest message getting only active true records.
Please let me know how to pass http query parameter in rest message for active to get all products which have value true or false.
I am trying like below but getting only active true records.
Please let me know correct way to get both active= true and active = false records.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 01:50 AM
"active" in ServiceNow is "1" in the database. So please try it with that value.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 01:56 AM
Thanks Maik, for quick response.
So in query parameter i need pass for active=true as 1 and active=false , value as 0 as below
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 02:10 AM
Yes mate.
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]
****************************************************************************************************************