An Action Result is a way to temporarily remember and recall a custom value within an object. This action will allow you to manually set a value to an action result.
▶ Assign the value: This is a value you wish to store in the action result. This value can be defined by you, pulled from an existing control on the screen, or pulled from the user's session.
▶ Give it a name: This is name you will give the action result so it can be referenced later on. Note: when you give it a name, a dropdown appears with "(New)" appended to it as shown above. You must click that dropdown option to create the action result else it will be empty and you will get an error:
▶ ⊕ Add another action result: You can define more than one action result.
Be descriptive when naming action results.
e.g. "result" is not helpful but "resultContactName" is.
- Action results only exist in the control they are created in.
e.g. an action result in one button is not visible in another button.
- Action results store the value temporarily.
e.g. navigating to a different screen will erase the action result.
- Although there is no character limit for an action result, there is a maximum of 10,000 characters that can be displayed using the action Show message.
When would we use it?
Action results are a basic function of app customization. As such, it is built into a number other actions. For example, the Math Function action will calculate two values and store the result in an action result.
Typically, Assign value to action result is used to clear an action result of a value, or initialize an action result to a start value. For example, you can use an action result as a counter and you would use Assign value to action result to start the counter at zero.