Available in: Axsy Mobile for Salesforce, Axsy Field Service, Axsy Public Sector, Axsy Retail Execution
Salesforce Triggers can be used to detect Status changes for Form Responses. To access JSON programmatically, you need to reference the axsy_forms__Form_Response__c custom object to create a trigger for when a Form Response's Status is updated to Completed-Synced. Subsequently, you can then access the raw JSON for the Form Response using the global method getFormResponseData(responseId) . Depending on the length of the response, the JSON is stored in either the Response Data field or the attached File. To learn more about the Form response JSON, read How to Access Raw JSON for a Form Response.
Information:
- For more information on Salesforce Triggers, please see this Salesforce guide: Salesforce: Apex Developer Guide
- For more information on Form Response Statuses, please see this article for a breakdown of the definitions: Form Response Statuses
- For more information on the Response Data field of a Smart Form, please see this FAQ: How to access raw JSON for a Form Response