Hi guys!
I need your help to figure out something. Is it possible for me to add a file I have in the filesystem to the attachments of a workflow via OScript?
Best regards.
When that file is accessible from the server then it is possible.
Hans
From: eLink Entry: Content Server Development Forum [mailto:development@elinkkc.opentext.com]Sent: Dienstag, 28. Januar 2014 19:15To: eLink RecipientSubject: Add file to workflow
Add file to workflow
Posted bydiogo.portela_ext@netpeople.pt (Portela, Diogo) On 01-28-2014 13:12
[To post a comment, use the normal reply function]
Forum:
Content Server Development Forum
Content Server:
Knowledge Center
Hi Hans,
Thanks for your answer.
I was checking the Oscript API Documentation and I think I've come to some conclusions, but I'm not sure I'm in the right path.
So, if I understood correctly, in order to do what I want, I need to use the DAPI package, right?
I will need to create a DAPINode, and then use the CreateNode function to add it to the Workflow's attachments folder (which will be the parent DAPINode), am I right?
What I could find, though, was the way to create the DAPINode from the file in the File System. How can I achieve this?
Best regards,
The best way to learn how to do something that is already possible via the UI is just stepping through the code that is executed in that case.
Your starting point in this case is WEBDOC.DocNode.Document.Action-Create2.
From: eLink Entry: Content Server Development Forum [mailto:development@elinkkc.opentext.com]Sent: Mittwoch, 29. Januar 2014 16:05To: eLink RecipientSubject: RE Add file to workflow
RE Add file to workflow
Posted bydiogo.portela_ext@netpeople.pt (Portela, Diogo) On 01-29-2014 09:55
Topic: