REST - POST method help

Mohammed Hyder
Tera Contributor

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": ""
}
}

7 REPLIES 7

@Ankur Bawiskar 

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

MohammedHyder_0-1744373597385.png

 

@Mohammed Hyder  

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thats the only issue, I am not able to pass the value within the Collection Required Block