cancel
Showing results for 
Search instead for 
Did you mean: 

Unity Form Workflow Template - Update fields from Custom Action via Unity Script

Kevin_Granger
Confirmed Champ
Confirmed Champ

HI,

 

I have a workflow unity form for which I want to run a unity script that executes a document query to find if a related document exists and report back to the user by updating a field on the unity form. I am unable to create a form modifier for the workflow template in order to update any fields on the workflow unity form.

 

Is there a way around this ?

 

I am not see a FormTemplate modifier...am I just missing this or are workflow unity forms not updatable via a custom action unity script?

 

Thanks,

Kevin

 

 

public void OnCustomActionExecuteAction(Hyland.Unity.Application app, Hyland.Unity.UnityForm.UnityFormCustomActionEventArgs args)

 

...

 

CustomActionForm frm = args.FormInstance;

 

FormModifier formMod = args.FormInstance.CreateUnityFormModifier();

 

 

Error: System.NullReferenceException: Object reference not set to an instance of an object.
at UFORMCAESCheckForDuplicateW9.CAES.OnCustomActionExecuteAction(Application app, UnityFormCustomActionEventArgs args) in :line 91

1 ACCEPTED ANSWER

Kevin_Granger
Confirmed Champ
Confirmed Champ

This was an issue caused by other coding, please disregard.

View answer in original post

1 REPLY 1

Kevin_Granger
Confirmed Champ
Confirmed Champ

This was an issue caused by other coding, please disregard.