REST - POST method help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2025 04:33 AM
Dear All,
I am trying create a POST method so that in click of UI action , All the required details should be sent to 3rd party
Payload : {
"client_reference": "123",
"account_id": "",
"additional_info": "",
"fault_description": "",
"serial_number": "123",
"imei": "",
"make": "",
"po_number": "",
"collection_details": {
"collection_required": true,
"collection_date": "20-12-2023",
"company": "",
"first_name": "AA",
"last_name": "BB",
"email": "AA@theaa.com",
"phone": "1234",
"address_line_1": "btm",
"address_line_2": "123",
"town": "234",
"postcode": "4333",
"special_instructions": "",
"store_number": ""
},
"delivery_details": {
"company": "",
"first_name": "",
"last_name": "",
"email": "",
"phone": "",
"address_line_1": "",
"address_line_2": "",
"town": "",
"postcode": "",
"special_instructions": "",
"store_number": ""
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2025 05:13 AM
Actually I am trying to convert http header query parameters to 'Auto generate variables' as Collection details has different blocks so not sure how do add them to the variable substitution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2025 05:49 AM
you can put individual variable there
Don't put the entire collections
you can find lot of community links and blogs which you can refer
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
04-11-2025 06:02 AM
Thats the only issue, I am not able to pass the value within the Collection Required Block