While trying to create physical object using web services, we are able to update location, selected media, unique id but having issue in setting properties like FromDate, ToDate, UserID, ClientID etc. Can someone please help us on this.
are these PO properties or actual Node or Content Category/Attribute properties?
Hello Appu,
Thanks for the response. We are trying to update the PO properties. Below is the code snippet of what we are trying to do.
Let xmlData = xmlData & "<node xmlns=""urn:DocMan.service.livelink.opentext.com"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"">" Let xmlData = xmlData & "<ParentID xmlns=""urn:DocMan.service.livelink.opentext.com"">2367465</ParentID>" Let xmlData = xmlData & "<DisplayType xmlns=""urn:DocMan.service.livelink.opentext.com"">PhysicalItem</DisplayType>" Let xmlData = xmlData & "<Metadata xmlns=""urn:DocMan.service.livelink.opentext.com"">" Let xmlData = xmlData & "<AttributeGroups>" Let xmlData = xmlData & " <Key>POCreateInfo</Key>" Let xmlData = xmlData & "<Type>POCreateInfo</Type>" Let xmlData = xmlData & "<Values xsi:type=""q6:IntegerValue"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:q6=""urn:Core.service.livelink.opentext.com"">" Let xmlData = xmlData & "<q6:Key>selectedMedia</q6:Key>" Let xmlData = xmlData & "<q6:Values>2367463</q6:Values>" Let xmlData = xmlData & "</Values>" Let xmlData = xmlData & "<Values xsi:type=""q6:StringValue"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:q6=""urn:Core.service.livelink.opentext.com"">" Let xmlData = xmlData & "<q6:Key>poLocation</q6:Key>" Let xmlData = xmlData & "<q6:Values>HR</q6:Values>" Let xmlData = xmlData & "</Values>" Let xmlData = xmlData & "<Values xsi:type=""q6:StringValue"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:q6=""urn:Core.service.livelink.opentext.com"">" Let xmlData = xmlData & "<q6:Key>pouniqueid</q6:Key>" Let xmlData = xmlData & "<q6:Values>12357</q6:Values>" Let xmlData = xmlData & "</Values>" Let xmlData = xmlData & "<Values xsi:type=""q6:StringValue"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:q6=""urn:Core.service.livelink.opentext.com"">" Let xmlData = xmlData & "<q6:Key>poKeywords</q6:Key>" Let xmlData = xmlData & "<q6:Values>draft agreement</q6:Values>" Let xmlData = xmlData & "</Values>" Let xmlData = xmlData & "<Values xsi:type=""q6:IntegerValue"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:q6=""urn:Core.service.livelink.opentext.com"">" Let xmlData = xmlData & "<q6:Key>UserID</q6:Key>" Let xmlData = xmlData & "<q6:Values>2336787</q6:Values>" Let xmlData = xmlData & "</Values>" Let xmlData = xmlData & "</AttributeGroups>" Let xmlData = xmlData & "</Metadata>" Let xmlData = xmlData & "<Type xmlns=""urn:DocMan.service.livelink.opentext.com"">PhysicalItemContainer</Type>" Let xmlData = xmlData & "<Name xmlns=""urn:DocMan.service.livelink.opentext.com"">LL Phys Item16</Name>" Let xmlData = xmlData & "</node>"
Following properties gets updated correctly and physical item gets created as well.
selectedMedia, poLocation, poUniqueID, poKeywords
Other properties such as UserID, Client_ID, poFromDate, poToDate etc.. do not work. It might be that the keywords are not correct. We are following the physical objects API guide which is an old one and could not find the latest guide either.
Regards,
Anup
I am not familiar with the syntax/semantics of your code what I would have done is download SOAPUI create a project throwing authentication, Docman and PO services and try to send a request . IN PO there are two things one is PO properties which are designed like categories and attributes but with the PO soap call you can send both.
see this example in the guide I see
URLTOFOOLBOThttps://webapp.opentext.com/piroot/llesrcm/v160204/llesrcm-pre/en/html/_manual.htm
I don't see userid in the guide so if it is a PO Property you would have to d do
If in doubt see if you created it manually or not.
Another way to see if the documentation is correct is to use Object Importer for RM document. People in the field use that a lot instead of coding avenues
URLTOFOOLBOThttps://webapp.opentext.com/piroot/llesrcm/v160206/llesrcm-goi/en/html/_manual.htm
I am not sayuing to you use that but just to check what is possible and its syntax. data types are not going to be helpful here because OI is Oscript so it will convert the type internally correctly.
if everything fails you may have to debug
some old code https://appukili.wordpress.com/2013/06/30/is-there-a-recordsmanagement_service-object-present-in-web-service/
if I find PO related code I will post later.I used to do this very easily but now I don't get a chance to do RM and PO
Thanks a lot for your inputs. Let me go through it. Will update.
Thanks for your inputs. We were able to update the required properties of physical item. Below is how we achieved it.
Docman - CreateNode to create the physical object
Pass the PO properties as "Metadata" to Docman, "selectedMedia" the field that recognize the type of PO to be created.
We are now working on boxing and borrow.
While trying to add item to box we get error "Either the Box does not exist, or the current user has insufficient permissions to see the box".
I have verified all the access including "Group Functional Access", tried with Admin account as well and it keeps throwing the same error. Am I missing anything in here?
If you are new to PO module in Livelink use its GUI and see what you are doing in the cases of boxes if the use case from the GUI looks like what you are doing there is a high chance the api supports it as this module is used in bulk operation involving artifacts in a organization(put in a warehouse or send to offsite storage like ironmountain) so there's no one typing it from the GUI.I cannot help now because I have no immediate .Roughly from memory PO Objects range in 410 and so on(https://www.greggriffiths.org/livelink/reference/subtypes/) so when I used to do this thing first I would model this and using the GUI on a box do some of the aforementioned items. You will also get better support if you asked this in Record Management forum although OT does not give any prompt answering like old times. Is the system already setup or are you guys setting it up for the first time....
From memory there are three main things PO Container which is not a Box, PO Box and PO Non Container
you use these main things to model things in your organization so when working at a O&G one our PO NC was a representation of different rock samples they use in drilling, someone will take a picture and create a sample and a O&G company has thousands of these .I was very impressed when I worked in that project:) and learned a lot by observing the modelling and the actions and self research.
This wont help if you are trying to do assigned work but a way for me to channel your thoughts to understanding and doing it better :)