Handling Null Form Variables in Workflows

  • 15 February 2022
  • 0 replies
  • 332 views

Userlevel 2
Badge +9

Topic

When a form control on a form is set to 'Visible = No', the corresponding variable for that control will always be null (regardless if the control was blank or not prior to being hidden).

21848iC40340DD37856FA1.png

 

If 'My Text Control' was used as reference in a workflow action, such as SmartSheet - Add a Row. . .

21847i0A4CEFB0CD8C9054.png

 

. . .this action would fail due to the null variable being used, and SmartSheet not being able to handle the null variable. 

21849i6D770D370399CF80.png

 

"Received an error response from the connector: "Required object attribute(s) are missing from your request: cell.value.". [Error Code: IO.XtensionExecute.ErrorResponse]"

Instructions

1. Set a new workflow variable to contain the value of the null form variable.

21850i981B9A3D33F893F1.png

 

2. Use the new workflow variable in workflow actions rather than the form variable.

21851i9A69F7DF63557D0E.png

 

Although the form variable is null, the workflow variable will simply be blank. Conversely, if the form variable is not null, the workflow variable will contain the information in the form variable.

Additional Information

While SmartSheet is used as an example, the null variable may impact other integration actions as well. Additionally, it may be a neater design to use a 'Branch by condition' action to only leverage the workflow variable when the form control is blank. Then, when the form control is not null, the original form variable continues to be used.

 

21852iB5A4A050D277021E.png

 

This example can be imported into your Nintex Workflow Cloud tenant using the following Workflow Export Key: RPoQtiB6KQ3oQspCe4dSEF8HFCHfP7z3Ztjdg75jGQjncSpxi


0 replies

Be the first to reply!

Reply