11-23-2023 10:00 AM
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
11-23-2023 10:18 AM
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();
11-23-2023 10:18 AM
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();
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.