An shared result is a way to temporarily remember and recall a custom value.
This action sounds much like the action Assign Value to Action Result, however, a Shared Result can be used anywhere in Method - not just in the control it's assigned to!
Use shared results sparingly! If you can do the same thing with an action result, use that instead. Shared results are incredibly difficult to debug.
- Assign the value: This is a value you wish to store in the shared result. This value can be defined by you, pulled from an existing control on the screen, or a pulled from the user's session.
- Give it a name: This is name you will give the shared result so it can be referenced later on.
With this action, you can add more shared results to set with + Add another action result.
Shared Result Considerations
Again, shared results should be used sparingly. In most cases, it is not suitable for use due to its difficulty to debug and maintain.
- Be descriptive when naming shared resultsi.e. "result" is not helpful but "resultContactName" is.
- Unlike action results, in order to reference the shared result you need to manually type in its name.
- Because shared results can be referenced from anywhere, there is no easy way to determine its source.
- Because shared results are saved throughout the session, it may require manual clearing.
- Although there is no character limit for a shared result, there is a maximum of 10,000 characters that can be displayed using the action Show message.