How to pass body/Payload in formdata rest API in BML
Summary:
We have a REST API for sending the quote via whatsapp and the payload is in formdata format. We have tried settimg up the below code. When we trigger from BML its gettig error, but when we trigger from postman with the printed results its working.
Any mistake in the formdata format in the below code.
Code Snippet (add any code snippets that support your topic, if applicable):
erpUrl = "url";
headers = dict("string");
put (headers , "Content-Type", "multipart/form-data");
param="usn:abs"+"\n"+
"pass:asdd"+"\n"+
"mobile:12222"+"\n"+
"channel:whatsapp_business"+"\n"+
"template:send_quotation"+"\n"+
"full_name:Test"+"\n"+
1