How to declare true/false value dynamically from endpoint url in HTTP Query parameter in rest messag

Madhusagar Pal1
Tera Expert

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: 

MadhusagarPal1_0-1701855593335.png

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.

MadhusagarPal1_1-1701855866328.png

Please let me know correct way to get both active= true and active = false records.

Thanks.

3 REPLIES 3

Maik Skoddow
Tera Patron
Tera Patron

Hi @Madhusagar Pal1 

"active" in ServiceNow is "1" in the database. So please try it with that value.

Maik

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

MadhusagarPal1_0-1701856572542.png

 

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]

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