Note: Nintex Apps data centers are located in West US and Australia (AUS). In-region processing of Nintex Apps data is only available in these regions.
Logic Actions
The solitary action in this group supports conditional branches, separate branches of actions within a single action script, based on a formula ("If this is true, then do this; if not, do that "). All this is performed within action flows, without using JavaScript snippets with If/Else statements.
Run action sequence
Used to select an action sequence to run within the current set of actions.
- Action sequence: The action sequence to run.
- Description: The description entered within the chosen action sequence's properties.
Note: In addition to the Action Sequence property, any inputs that have been specified on the action sequence are displayed as properties. For more information, see Inputs.
Use action sequences thoughtfully. If there are actions within an action sequence that are contingent on context, recognize that the context changes depending upon where and how the sequence is invoked.
When invoking an action sequence, be sure to examine the individual actions for properties and merge syntax that rely on context, and ensure that you are using the correct model conditions for that action to work within the context requirements.
Run a JavaScript snippet
Like Nintex Apps Javascript snippets? Use a snippet alongside other actions without adding more code to the existing snippet.
- Name of snippet to run: The exact name of the snippet.
Snippets must be registered using skuid.snippet.registerSnippet(snippetName, snippetFunction ).
Publish event
Use action flows to publish events. Subscribe to these events using an action flow or with the skuid.events.subscribe() API.
-
Event name: The name of the event to be published.
-
Publishing scope: Determines how "far" outside the current page that the published event will reach.
- All active pages: The event will be published on all Nintex Apps pages that are active in the current window.
- Only this page ( default ): The event will only be published on the current Nintex Apps page.
-
Channel (optional): Determines on which "channel" an event is published, providing another option to narrow the scope of an event. An event subscription only activates if it is also pointed to the channel specified here, even if the event name is the same.
Working with event parameters
It's possible to add parameters, additional pieces of data, when publishing an event. Parameters enable events to be a more robust information-passing mechanism as opposed to a basic alert that something has occurred.
To add parameters:
- Click the More Options icon on the Publish event action.
- Click Add parameter.
- Enter the parameter's information:
- Parameter name: The name of the parameter. Ensure this name is memorable and recognizable; it must be used anytime you wish to retrieve a parameter's value.
- Value: The value of the parameter, which can be any hard-coded string, merge variable, or combination of the two.
Event parameters are automatically passed into action flows as inputs, accessible through the $Input merge variable.
Note: You must know the parameter's name to retrieve its value through the $Input merge variable. It's not possible to declaratively retrieve all parameters without specifying them.
Event parameter example
Consider this runtime example:
This experience is created with a Show toast message action, an event, and an event parameter.
First, create the button and action:
- Drag a Button Set into the canvas.
- Set the Button label to Publish "exampleEvent".
- Navigate to the Actions tab.
- Add a Publish event action and set its properties:
- Event name: exampleEvent
- Publishing scope: Only this page
- Click More options > Add parameter.
- Set the parameter's properties:
- Parameter name: exampleParameter
- Value: Some example data
It's now possible to access this parameter declaratively in an action sequence with {{$Input.exampleParameter}} .
-
Create an action flow.
-
Set its properties:
- Sequence name: Listen for events and show toast
- Event name: exampleEvent
- Listen for events: Only this page
- Event channel: Leave this blank
-
Create a new action in the sequence and set its properties:
- Action type: Show toast message
- Message to display: {{$Input.exampleParameter}}
- Display duration: 4 seconds
- Click to dismiss: Leave this unchecked
- Style variant: Default
- Position: Bottom left
Save and preview the page. Anytime the button is pressed, a toast message appears containing the event's parameter value.
Branch
This action supports conditional branches, separate branches of actions within a single action script, based on a formula ("If this is true, then do this; if not, do that"). All this is performed within action flows, without using JavaScript snippets with If/Else statements.
-
Formula context model (optional): Establish context for the formula by selecting the model being referred to with merge syntax.
-
Branch Formula: In this field, use merge syntax as well as Nintex Apps's formula functions to dictate the logic of the branch. Some examples:
-
For toggleable fields that result in a boolean value:
- {{FieldName}} == true
-
To compare fields to values, encase the values in quotation marks:
- {{ABC}} == "123"
-
-
Description: Useful for Nintex Apps administrators, the text entered in this field displays beside the word "Branch" in the Actions list.
-
After running the branch: Determines what happens after this branch action is complete. This property only applies to the branch if the formula evaluates as true.
- Do not run any additional actions: Do not run any additional actions from the actions list after this branch completes.
- Continue with next action: Move on to the next action (or branch) in the actions list after this branch completes.
Note: If nesting branches within branches, then be aware that the property of Do not run any additional actions on a branch within a branch will stop all additional actions, even if the top-level branch was set to continue.
Using branch actions
-
Create a new action and select Branch as the action, then edit the branch properties.
-
Add actions to the branch:
-
To add true actions to the branch, click Nintex Apps performs depend on if the branch's logic is true:
Add If-True Action on the branch and format the action. With conditional branching, the actions-
If the formula is true, then the If-True actions connected to this branch occur.
- If the branch is set to Do not run any additional actions, then Nintex Apps ignores any actions listed after the branch action.
- If the branch is set to Continue with the next action, then Nintex Apps proceeds with any actions listed after the branch.
-
If the formula is false, Nintex Apps skips the branch—and all actions listed within it—and proceeds with any actions listed after the branch.
-
-
To add actions that occur if the branch's logic is not true, click
Add action (at the top level) and place those actions after the branch action.
-
Evaluate formula fields on model
Evaluates the formula fields on the specified model and updates their values accordingly.
- Fields to evaluate: All formula fields on model, all formula fields on a row, specific formula field on a row
- Model: Determines model to evaluate formula fields for.
- Rows to use
- All rows: Targets all rows in the model.
- Rows in context: Targets only the rows in context, like selected rows for a Table mass action.
- Manually specified row: Enables the Row Id property, which is used to target a specific row. This Id is typically provided as a merge variable.
Copy text to clipboard
Copies the specified text to the end user's clipboard.
- Text to copy: The text to be sent to the user's clipboard. Compatible with merge syntax, static strings, or a combination of the two.
For example, to send a static string that also contains the value of a field for the row in context:
The field's value is {{field}}.
Used as a row action on a field where {{field}} = green would result in this being copied to ths user's clipboard:
The field's value is green.