Add the Input External Onboarding Feedback Apex Action to the Flow [Admin]
The next step is to add an Apex Action to the TaskRay Customer Onboarding Feedback Flow to Input External Onboarding Feedback. With the Salesforce Winter '20 release, Salesforce enhanced guest user security to adhere to the principle of least access. This means that Public Site Guest Users will no longer be able to directly edit TaskRay Projects, and the Onboarding Feedback Flow will need to use an Apex Action to update Projects when a Public Site Guest User inputs onboarding feedback.
Note: This step is required in order for External Feedback Forms to function correctly.
Follow these steps to add the Input External Onboarding Feedback Apex Action to the Flow:
- From Setup, navigate to:
- Lightning: Process Automation | Flows.
- Classic: Build | Create | Workflow & Approvals | Flows.
- Find the TaskRay Customer Onboarding Feedback Flow and click to open it.
- In the Flow, scroll down to find the Assign Feedback to Project Fields Assignment node.
- In the left sidebar, click and drag an Action node into the Flow. Position the Action node below the Assign Feedback to Project Fields Assignment node and above the Success Screen node:
- Use the search box to find the Input External Onboarding Feedback Action:
- Enter a Label and optionally enter a Description.
- For the Fields to Update input value, copy and paste the following text:
TASKRAY__trExternalSentiment__c,TASKRAY__trExternalFeedback__c
- For the TaskRay Project input value, find the recordvarTaskRayProject TaskRay Project Record Variable or copy and paste the following text:
{!recordvarTaskRayProject}
- Click Done.
- Connect the Flow nodes:
- Connect the Assign Feedback to Project Fields Assignment node to the new Input External Onboarding Feedback Action node.
- Connect the new Input External Onboarding Feedback Action node to the Success Screen node.
- Connect the Input External Onboarding Feedback Action node to the faultScreen Screen node to add a Fault path to the Flow.
- In the top menu, click Save As.
- Enter a Flow Label and optionally enter a Description. Click Save.
- In the top menu, click the Activate button to activate the new Flow Version.
Configure TaskRay Global Settings [Admin]
The next step is to enter the TaskRay Forms Public Site URL, TaskRay Forms Public Site User Id and Onboarding Feedback Flow in TaskRay Global Settings.
- From Setup, navigate to:
- Lightning: Process Automation | Flows.
- Classic: Build | Create | Workflow & Approvals | Flows.
- Find the custom Onboarding Feedback Flow that you saved in the previous step. Use the menu on the right to View Details and Versions.
- Find the Flow API Name and copy the value.
- From Setup, navigate to:
- Lightning: Custom Code | Custom Settings.
- Classic: Develop | Custom Settings.
- Click Manage next to TaskRay Global Settings.
- Find the TaskRay Forms Public Site URL custom setting and enter the Forms Public Site URL. This is the URL of your public site that you assembled and saved earlier.
- Find the TaskRay Forms Public Site User Id custom setting and enter the Site Guest User ID. This is the ID of the Site Guest User that you saved earlier.
- Find the Onboarding Feedback Flow custom setting and paste the Flow API Name that you previously copied into the custom setting.
- Click Save.
Note: There are multiple TaskRay custom settings for configuring access to external sites. Ensure that you populate the TaskRay Forms Public Site URL and TaskRay Forms Public Site User Id custom settings to set up the Customer Onboarding Feedback Flow.