Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
4 replies
Subscribers
7 subscribers
Views
1966 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
can cmiCopyDocumentFromAppian be called from a script task?...
karls
over 10 years ago
can cmiCopyDocumentFromAppian be called from a script task?...
OriginalPostID-133664
OriginalPostID-133664
Discussion posts and replies are publicly visible
0
Sathya Srinivasan
Appian Employee
over 10 years ago
Yes, you should be able to. One thing to note is that if you want to use the local-credential, you need to activity chain the script task to a user input task. In this case, the document will be uploaded as the person who completed the task (or if you activity chain to the start event, it will be the person who initiated the process)
The other option is to run it with site-wide credential.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
karls
over 10 years ago
Currently I am using a site wide credential.
Can we call rthe function directly? We would have to use a writer. Please do guide me on how we would go abbout it.
a!cmiCopyDocumentFromAppian(
scsExternalSystemKey: cons!CMIS_SCS_KEY,
usePerUserCredentials: false,
atomPubUrl: cons!CMIS_URL,
repositoryId: cons!CMIS_REPO_ID,
objectId: rule!CMIS_cmiGetObjectIdByPath(cons!CMIS_ISP_SSCM_ROOT & "/" & ri!folderName),
properties: {name: "Arch.jpg"},
appianDocument: ri!appianDocument
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
alexanderc
over 9 years ago
Hi Karls/ Sathya,
Is this possible in a script task? I read that that cmiCopyDocumentFromAppian requires the bind function. My understanding, the bind can only happen in the sail.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sathya Srinivasan
Appian Employee
over 9 years ago
Your understanding is correct. Any writes should happen as a part of SAIL bind fn
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel