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
Assigning a Custom Attribute To a Document via LAPI
Charles_Barratt_(MasonAdmin_(Delete)_1809188)
I am adding a document onto Livelink and want to assign a custom attribute value to it. I can add the document, assign the category I want it to belong to, but I am having a problem assigning the attribute value.I am trying use the LL_SetObjectAttributes function having first completed a LL_GetObjectAttributes and then assigning the AttrName field and the Value field both via the LL_AssocSetString but to no avail.
Find more posts tagged with
Comments
Dave_Russell_(CCIDR_(Delete)_2115817)
The best way I found of doing it (works for me !) is to use the Table/Record GET functions to read the attribute I'm interested in (They get returned in an Table of Name and Value columns so you have to loop through until you get the one you want - I'm usually setting 4 or 5 attributes so this isn't a problem for me) then use the Table/Record SET functions to save the new value of the attribute.....Finally, call SetObjectAttributes and your new value should be saved.Dave