Available in: Axsy Mobile for Salesforce, Axsy Field Service, Axsy Public Sector, Axsy Retail Execution
Once you have created an Axsy Smart Form, you can make the Smart Form available in the Axsy Mobile App by setting up a Salesforce Flow. This article describes how to do so with a Salesforce Flow which, at run-time, will dynamically determine the Axsy Smart Form to be run based on a custom record field.
Please see this article for more information on creating a custom record field to be used and referenced within the Flow: Deploying Smart Forms with Salesforce Flow - Custom Record Field
Configure the Flow on the Salesforce Platform
Create the Flow
- From Salesforce Setup, use the Quick Find search and type in "Flows".
- Under Process Automation, select Flows. For a new Smart Form, select New Flow.
- From the Menu options, select Screen Flow and then Create.
Create Flow Resources
Using the New Resource button, create the following Flow Variables with the following parameters:
- A Text variable for the Salesforce ID of the record running the Smart FormParameterValue
API Name Id Data Type Text Available for input Checked Available for output Checked - A Text variable for the Salesforce ID of the Smart Form to runParameterValue
API Name FormID Data Type Text
Once these Resources are created the Salesforce Flow can be configured.
Configure the Flow
- Add a new Get Record Element to the Flow that will retrieve the record running the Smart Form from the Salesforce ID that launched the Flow. Set its parameters to the following and then select Done:ParameterValue
Label GetRunningRecord API Name GetRunningRecord Object Set this to the object, e.g. Work Order, that is intended to run the Smart Form Condition Requirements All Conditions Are Met (AND) - Field: Id
- Operator: Equals
- Value: {!Id}
Sort Order Not Sorted How Many Records to Store Only the first record How to Store Record Data Choose fields and assign variables (advanced) Where to Store Field Values In separate variables - Field: Set this to the custom lookup field created on the to store the Smart Form to be run, as described in Deploying Smart Forms with Salesforce Flow - Custom Record Field
- Value: {!FormID}
- Add a new Action Element to the Flow.
- Using the search box, type in "Axsy" and select the Launch Smart Form action.
- Toggle the FormId parameter to "Included" and then set it to the variable created earlier: {!FormID}
- Save your changes and Activate the Flow.
Now that you have successfully configured and activated your Salesforce Flow, you can now deploy it the Axsy Mobile App using a Quick Action or a Flow Assessment Task.