Need to place Query Parameter Associations on certain order

venugopal s
Tera Contributor

Hi Everyone, 

How can I achieve  Query Parameter Associations in a certain order as mentioned below on  REST API Query parameters.

  • request_type

  • portal_requisition_id

  • requested_for

  • submitted_by

  • country

  • state_code

  • manager

  • recruiting_coordinator

  • candidate_id

Thanks 

1 ACCEPTED SOLUTION

@venugopal s  ,we cant define the Order for Query prams in REST Message & we  don't have an way to order this Parameters in the REST API  Explorer as well

 

Regards,

Shyamkumar

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

View solution in original post

7 REPLIES 7

shyamkumar VK
Kilo Patron

@venugopal s  , Not Sure what's your Ask , if you want to Construct Endpoint with Above Query Parameters , use REST API Explorer and Pass the Above fields in "sysparm_fields" 

 

Reference

https://www.servicenow.com/community/developer-articles/integratenow-chapter-3-rest-api-explorer/ta-...

 

Regards,

Shyamkumar

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

venugopal s
Tera Contributor

Hi @shyamkumar VK , I want to see on REST API   Query parameters should be on same order which I have mentioned.

@venugopal s , Yes you need to do that via Rest API Explorer

 

Ex : 

I have added number,state,sys_created_by to the Sysparm fields and they have Included in Same format to the API 

api/now/table/incident?sysparm_fields=number%2Cstate%2Csys_created_by

shyamkumarVK_0-1709798486162.png

 

 

Regards,

Shyamkumar

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

venugopal s
Tera Contributor

Yes, you are correct @shyamkumar VK , where we can see option for this on REST API Explorer.

venugopals_0-1709798931957.png