Hello,
Just wondering if there was a way to update the From Date on a Physical Item using LAPI.
I've tried using somethign like this, however, I get the following error: " Could not update physical item"
LAPI. PhysObj po = new LAPI. PhysObj (session);;
LAPI_DOCUMENTS documents = new LAPI_DOCUMENTS (session);
LLValue objInfo = ( new LLValue ()).setAssocNotSet();
int status = po.PhysObjGetInfo(objID, objInfo);
objInfo.add( "objAction" , "info2" ); // Need this line for update to work
DateTime fromDate = new DateTime (2012, 3, 14);
objInfo.add( "poFromDate" , new LLValueNET (fromDate).ToString());
status = documents.UpdateObjectInfo(0, objID, objInfo);
if (status != 0)
{
string error = session.getApiError();
string errorMsg = session.getErrMsg();
string statusMsg = session.getStatusMessage();
}
Any help would be appreciated!
Thanks,