CMIS Upload File
Hi All,
I am trying to upload appian file to CMIS. I'm using CmiCopyDocumentFromAppian as AppianDocs suggests.
=load(
local!appianDocument,
local!cmisFolderId,
local!cmiCopyDocumentFromAppianWriter: bind(
null,
a!cmiCopyDocumentFromAppian(
scsExternalSystemKey: cons!CMIS_SCS_KEY,
usePerUserCredentials: true,
atomPubUrl: cons!CMIS_URL,
repositoryId: cons!CMIS_REPO_ID,
objectId: local!cmisFolderId,
properties: {name: "Example Document"},
appianDocument: _
)
),
{
a!textField(
label: "Folder Id",
instructions: "The object id of the CMIS folder into which the Appian document will be copied",
value: local!cmisFolderId,
saveInto: local!cmisFolderId
),
a!pickerFieldDocuments(
label: "Select an Appian Document",
instructions: "The selected document will be copied to the target CMIS site",
maxSelections: 1,
value: local!appianDocument,
saveInto: local!appianDocument
),
a!buttonArrayLayout(
buttons: {
a!buttonWidget(
label: "Copy Document to CMIS",
value: local!appianDocument,
saveInto: local!cmiCopyDocumentFromAppianWriter
)
}
)
}
)
When i performed the interface with this code nothing happened. Connections with my CMIS are ok, i am getting results using other methods "cmiGetObjectIdByPath" (whose result i am using to send as FolderId
and also i am able to get documents through "!cmiCopyDocumentToAppian"
Anyone either has tried or knows whats is the reason it could be the reason?
Thanks in advance
