Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Updating a Existing Ms Word Document with the Attributes Variables
William_Teo_(sbspte01user1_-_(deleted))
Dear all,I have a existing Word Document in my attachment in my workflow. How can I use Lapi to update my Existing Ms Word document in the workflow. Please Advice..
Find more posts tagged with
Comments
William_Teo_(sbspte01user1_-_(deleted))
How do I access the Ms Word documents that is already in Livelink workflow and update it using LAPI
Krishnankutty_Nair
Since I do not know what kind of lapi/workflow knowledge you have I will assume to be a beginner and post the psuedo code.If you know how to access livelink thru a lapi call then half the battle is won.For manipulating workflow objects you need to use WAPI methods and objects.Every workflow in livelink is characterized by two tokens called(workID,SubWorkID).When you initiate a workflow the WF engine creates them.Any further manipulation is based on those.When you use a LAPI method most often livelink returns you an associative (huge) datastructure about the object,which is most often an LLvalue object.Most often it is only necessary to find the right structure within the object and key off of those.In your case you will ask the livelink system about the workflow (AccessWorkPackage)package,it will return you that and in your code you will look at the attachments volume,its contents and do some manipulation.So you may have to use WAPI as well as DAPI(Library API) in this case.and when you are done you will end up doing UpdateWorkPackage.I wrote this for a 9.1sp3 system
http://www.greggriffiths.org/livelink/development/lapi/wfattachments/some
things have changed since then,but I was merely printing out the contents of that I think.It may probably work also.If these are very non-understandable a partner called Formark has something called LLCOM that may encapsulate some info and have some ready to use methods for you.Also this area may have some info for you
https://knowledge.opentext.com/knowledge/llisapi.dll?func=Knowledge.Results&objId=3494545&SearchFor=*&ArticleType=Code+Sample&productID=Livelink+API
maybe better than my stuff also