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 workflow text attributes using lapi affects checbox values.
Christopher_Caughlin
I am updating a workflow task using lapi. I am able to update the the text field correctly but a side effect is that the flag checkbox value is also changed. Is there something I am not doing properly? I am using livelink version 9.1.0.4.28. I call the following function once for a text field. private void SetAttribute(string attribName, string attribValue, LAPI_ATTRIBUTES myAttrib , LLValue catVersion, string valType) { LLValue attrValues = new LLValue().setList(); LLValue myPath = new LLValue(); DateTime dateFormat; if ( valType == null ) { attrValues.add( attribValue ); } else if ( valType.ToUpper() == "INT" ) { attrValues.add( Convert.ToInt32(attribValue) ); } else if ( valType.ToUpper() == "BOOLEAN" ) { if ( attribValue.ToUpper() == "TRUE" ) attrValues.add( true ); else attrValues.add( false ); } attrValues.add(attribValue); int status = myAttrib.AttrSetValues(catVersion,attribName,LAPI_ATTRIBUTES.ATTR_DATAVALUES,myPath,attrValues); if(status != 0) { string err = CsLivelink.printSessionStatus(llObj.Session,"UpdateTaskWork"); throw new Exception(err); }}
Find more posts tagged with
Comments
There are no comments yet