Sugar Troubleshooting
This guide provides a comprehensive solution for resolving connection issues between Sugar CRM and Smart Flows. It outlines the necessary steps to ensure a seamless resolution to the problems users have reported.
Why can't I connect to Smart Flows from Sugar?
Users must add the Smart Flows URL to the Content Security Policy settings in Sugar CRM to resolve this issue.
Problem
Users in Sugar began reporting connection errors to the Smart Flows server on May 19, 2022. However, the actual origin date of the issue is still under investigation.
Prerequisites
The user is accessing Smart Flows through the integration with Sugar CRM and attempting to initiate a Smart Flow from the Sugar interface.
Symptoms
When clicking the Smart Flows button in Sugar, an error message displays:
"Error - The Smart Flows server cannot be reached, please contact your Smart Flows administrator."
Cause
Recent updates to Sugar CRM require administrators to explicitly define external sources in the Content Security Policy. If the Smart Flows URL is not included, the browser will block requests to it.
Solution
Update the script-src entry in Sugar CRM settings
1. | Log in to the Project Console for your Smart Flows project. |
2. | On the top navigation, click the Control panel button. |
The Control panel displays.
3. | Click the Connectors button. |
The Connectors List view displays.
4. | Click the row for your Sugar connector. |
The row highlights gray, and a checkmark appears next to your connector name.
5. | Click the Configure button. |
The Edit connector Authenticate with Sugar window displays.
6. | In the Password field, type in your password. |
7. | Click the blue Next button. |
The Edit connector customize packages window displays.
8. | Scroll to the bottom of the window and click the blue Next button. |
The Edit connector Install your Smart Flow Sugar package window displays.
9. | Click the blue Next button. |
The Edit connector Create/configure Sugar connection record automatically window displays.
10. | You may deselect the option "I want to install/update the Sugar App" or leave it selected and proceed with the steps below. |
11. | Click the blue Next button. |
The Edit connector Configure the Content Security Policy window displays.
12. | Click the copy button for the Smart Flows Base URL. |
The system copies the URL for your Smart Flows instance to your clipboard
13. | Click Link to Content Security Policy Settings. |
The login page for SugarCRM displays in a new tab.
15. | In your organization's Sugar instance, navigate to the Content Policy and Settings tab. |
The Basic tab displays.
16. | Click the Advanced tab. |
The Advanced tab displays.
When copying the Smart Flows instance URL, ensure you copy from the HTTPS through the first /
17. | In the script-src, field, copy and paste the URL for your Smart Flows instance. |
18. | Click the blue Save button in the top right. |
A save confirmation displays.
The system returns to the Administration page in Sugar.
Smart Flows Buttons Do Not Work Anymore in Sugar 11 (released 09/04/2021)
Problem
Why do Smart Flows buttons no longer work after upgrading to Sugar 11 (released September 4, 2021)?
Prerequisites
-
Sugar CRM version 11 (released September 4, 2021)
-
An existing Smart Flows integration
-
Admin access to SugarCRM settings
Symptoms
-
When clicking a Smart Flows button from a record view in Sugar 11, the button fails to respond.
-
An error message appears indicating that access is blocked:“ This has to do with a new feature called 'Content Security Policy' where any other domain outside of the default Sugar domains are not allowed.”
Possible Causes
-
Cause 1: Sugar 11 includes a new Content Security Policy (CSP) that blocks domains not explicitly allowed.
-
Cause 2 (if applicable): The Smart Flows domain has not been added to the CSP allow list, preventing embedded content from functioning.
Solution
To resolve the issue, you must add the Smart Flows domain to the SugarCRM Content Security Policy allow list:
1. | Log in to the Sugar Admin console. |
2. | Navigate to System > Content Security Policy Settings. |
3. | Add the base URL for your Smart Flows project to the list of allowed domains. |
Example: https://yourdomain.smartflows.xpertdoc.eu
(do not include a trailing slash)
4. | Optional): To support multiple project domains, add a wildcard domain such as .smartflows.xpertdoc.eu or .smartflows.xpertdoc.com, depending on your region. |
5. | Save the changes. |
Expected Result
After saving the updated settings, Smart Flows buttons will function as expected when accessed from a record view in Sugar 11.
Additional Information
This workaround will be implemented natively in a future product update. For details, refer to the release notes.
Related Resources
Sugar 11 CRM Content Security Policy
Next Steps
If none of the above steps resolve the issue, consider the following options:
-
Submit a support ticket: Open Support Portal
-
Contact your system administrator for further assistance.