Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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"+

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!