on 04-19-2022 7:13 PM
Hi Team,
Trying to call DMS API from bot, but script is not accepting the 'FormData()'
var oFormData = new FormData();
oFormData.append("cmisAction", "createFolder");
oFormData.append("succinct", "true");
oFormData.append("propertyId[0]", "cmis:name");
oFormData.append("propertyValue[0]", `${folderName}`);
oFormData.append("propertyId[1]", "cmis:objectTypeId");
oFormData.append("propertyValue[1]", "cmis:folder");
var oSettings = {
"url": sUrl,
"method": "POST",
"async": false,
"data": oFormData,
"cache": false,
"contentType": false,
"processData": false,
"headers": {
'X-CSRF-Token': sToken
}
};
Please help me with this, how to handle this scenario ?
Regard,
Satya
What if I need to create a document in folder? How would be the form if there is a file to upload?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.