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
8 replies
Subscribers
7 subscribers
Views
2954 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
We're trying to send documents to alfresco using the file upload component i
alexanderc
over 9 years ago
We're trying to send documents to alfresco using the file upload component instead of the appian document picker (document picker was used in the connector example). We are not able to send the document to alfresco.
Appian_CMIS_SAIL_Form.txt
OriginalPostID-151263
OriginalPostID-151263
Discussion posts and replies are publicly visible
0
sikhivahans
over 9 years ago
@alexanderc I might be wrong, but AFAIK until and unless the form is submitted, local!appianDocument doesn't evaluate to a valid document object in Appian. Until it evaluates to a valid document object (which happens after form submission), you can't use it in the connector function.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tom Ryan
Appian Employee
over 9 years ago
Just adding to the previous response, you should be able to use the file upload if you place it on a previous form, since after the file upload form is submitted the document will be available to send.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
@alexanderc The very first point under 'Notes' section at https://forum.appian.com/suite/help/7.9/SAIL_Components.html#FileUpload describes this behavior. So you may want to probably think of an alternative for doing so (for instance, as said by Tom Ryan), but should be after form submission.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
alexanderc
over 9 years ago
Thank you Tom and Skhivahans. So for me to upload a document to the content management system, I require the user to perform a two step process. I'd like to avoid that at all cost. Our users plan to upload several documents and having to make them do it twice seems unreasonable. Is there another way to achieve this?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tom Ryan
Appian Employee
over 9 years ago
You should be able to move the logic to upload the document to alfresco into a rule/script task, and then call this in the process after the documents have been uploaded to Appian.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
alexanderc
over 9 years ago
we tried to move the logic to a script task but when adding it to a script task, we are unable to use cmiCopyDocumentFromAppian since it returns a writer that needs to be used in a bind function. From my understanding, Bind can only be used in a SAIL UI. Should I be consider creating custom smart services?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
@alexanderc Prior to creation, it would be worth going through the shared components once.
And regarding the execution of the connector function - true, to the best of my knowledge, invoking it can be done from saveInto attribute of a SAIL component.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
alexanderc
over 9 years ago
thank you - that helps clarify things. I looked through the shared components but there doesn't seem to be any smart services for CMIS.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel