on 01-28-2021 5:38 AM
HI All,
I am getting error while calling DocuSign API from sap ui5 application.
and its working fine in SAP open connector..
Error : {"requestId":"60123b87e4b00fe30653475f","message":"Unable to parse multipart body"}
Request Payload :
var templateData ={
"emailSubject": "Please sign this",
"emailBlurb": "Please sign...thanks!",
"templateId": "my template ID",
"envelopeIdStamping": "false",
"templateRoles": [{
"roleName": "Signer1",
"name": "John Doe",
"email": "xyx@gmail.com",
"recipientId": "1",
"tabs": {
"textTabs": [{
"tabLabel": "firstName",
"value": "John"
}, {
"tabLabel": "lastName",
"value": "Doe"
}, {
"tabLabel": "phoneNo",
"value": "22222222"
}, {
"tabLabel": "email",
"value": "xyz@gmail.com"
}]
}
}],
"status": "sent"
};
var oAuth ="User /8eeSIY255zyErZUtoNNiUO64/vq4yV7Y0ODKdjsl/g=, Organization 7a2f3683439c37271ab9667e6e64f0d7, Element +CTzsypHRH5g1JBSKXe16QLH4YT6Djdvr8JK3Ir4yek=";
var oData = JSON.stringify(templateData);
var settings = {
"async": true,
"crossDomain": true,
"url": '/docuSign/envelopes',
"method": "POST",
"resolveWithFullResponse": true,
"data": oData,
"headers": {
"Authorization": oAuth,
"Content-Type": 'application/json'
},
};
var deferred = $.Deferred();
$.ajax(settings).done(function (response) {
debugger;
deferred.resolve(response);
}.bind(this)).fail(function (error) {
debugger;
deferred.reject(error);
}.bind(this));
Hi Virendra,
Did you manage to solve the issue? I'm facing the same problem.
Regards,
Piotr
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.