cancel
Showing results for 
Search instead for 
Did you mean: 

Help with updating a workview object in an ISchedulableScript.

Keith_Malek
Star Contributor
Star Contributor

Hello,

 

I'm trying to figure out the code to update a workflow attribute from a workflow script.

I've been trying variations of the following with no luck;

						Hyland.Unity.WorkView.WorkView wvModule = object;						Hyland.Unity.WorkView.Application wvModule = wvModule.Applications.Find("WorkFlowMonitor");												wvModule oWorkFlowMonitor = Hyland.Unity.WorkView.WorkViewObject;						AttributeValueModifier avMod = oWorkFlowMonitor.CreateAttributeValueModifier();						avMod.SetAttributeValue("LastRan", currentTime);  					    avMod.ApplyChanges();	

 

Any help would be greatly apresheated.

 

Keith

1 ACCEPTED ANSWER

Keith_Malek
Star Contributor
Star Contributor

I figured it out as:

Hyland.Unity.WorkView.Object wvObject = wvClass.GetObjectByID(objectID);Hyland.Unity.WorkView.AttributeValueModifier attrValueModifier = wvObject.CreateAttributeValueModifier();attrValueModifier.SetAttributeValue("LastRan", currentTime);attrValueModifier.ApplyChanges();

View answer in original post

1 REPLY 1

Keith_Malek
Star Contributor
Star Contributor

I figured it out as:

Hyland.Unity.WorkView.Object wvObject = wvClass.GetObjectByID(objectID);Hyland.Unity.WorkView.AttributeValueModifier attrValueModifier = wvObject.CreateAttributeValueModifier();attrValueModifier.SetAttributeValue("LastRan", currentTime);attrValueModifier.ApplyChanges();