Knowledge Base - Smart Flows

Creating a Sugar Connector

Creating a Sugar connector allows Admins and Designers to sync their users and start the process of configuring Smart Flows to work with Sugar. If you are creating your Sugar connector during the initialization of your Smart Flows project, skip to Configuration during Project Initialization.

You can have multiple connectors of the type Sugar in your project.

Create Sugar connector after project initialization

If a flow is started outside of Microsoft Dynamics, the system cannot maintain the identities when using impersonation. When the flow runs, it will run with the person's credentials who created the connectors. This will show that the connector creator performed subsequent actions during the flow execution instead of the person who is running the flow.

  1. In Project Console, select Control Panel > Connectors > +Create.

    S2.png
  2. Input the name of your connector.

    S4-S7.png
  3. (Optional) Input a Description for your connector.

  4. In the Type dropdown menu, select Sugar.

  5. Select Next.

  6. In the Sugar URL field, insert the URL of the Sugar instance to which you want to connect your Experlogix Smart Flows project.

  7. Select Next.

    Add Sugar URL.png

Add the script-src to your Sugar instance

  1. On the Project Console, navigate to Control Panel > Connectors.

  2. Select the Sugar connector row, then click the Configure button.

    connector-sugar-CRM.bmp
  3. In the Password field, type in your password and select Next.

    Sugar Connector List view.png

The Edit connector customize packages window displays.

  1. Scroll to the bottom of the window and select Next.

The Edit connector Install your Smart Flow Sugar package window displays.

Sugar Edit Connector Customize.png
  1. Select Next.

The Edit connector Create/configure Sugar connection record automatically window is displayed.

  1. You can either deselect the option "I want to install/update the Sugar App" or leave it selected.

  2. Select Next.

The Edit connector Configure the Content Security Policy window is displayed.

  1. Select the copy button for Smart Flows Base URL.

The system copies the URL for your Smart Flows instance to your clipboard.

  1. Select Link to Content Security Policy Settings.

The login page for SugarAI displays in a new tab.

  1. Log in to your Sugar instance.

    SugarCRM login.png
  2. In your organization's Sugar instance, navigate to the Content Policy and Settings tab.

  3. Select the Advanced tab.

    Sugar Basic tab.png

When copying the Smart Flows instance URL, ensure you copy from the HTTPS through the first /

  1. In the script-src field, copy and paste the URL for your Smart Flows instance.

  2. Select Save.

A save confirmation displays. The system returns to the Administration page in Sugar.

Sugar Advanced Tab.png
  1. In Smart Flows, select Next.

The Edit connector Connected window displays.

S19.png
  1. Select Finish.

The Edit connector Connected window no longer displays. The update of your Sugar connector is complete.

Edit Connector Connected.png

Uploading and Installing the Experlogix Module for Sugar

Once you've created and authenticated your Sugar connector, you must upload a deployable package from Smart Flows into Sugar. The installed app package(.zip) allows seamless communication with Sugar and Smart Flows to communicate between each other. Follow the steps below to upload and install your Sugar app package.

The Install your Smart Flows Sugar package window displays.

  1. In the Create Connector dialog box, select Download under Download and install the Sugar package.

Your browser starts downloading the zip file.

  1. Once the zip download is complete, Select the Module loader button.

Create Con-Install Sugar pck window.png
  1. Next to the Module field, select the Choose file button.

The File Explorer displays.

  1. Navigate to and select the downloaded zip file provided by Smart Flows.

  2. Select Upload.

In the lower List view, the package displays.

  1. Select Install.

The Ready to Install window displays.

Sugar Module Loader.png

The package displays in the installed package list view.

image2019-4-19_13-47-6.png

You’ve successfully created your Sugar connector. After installing the app package, you must update the configuration record between Sugar and Smart Flows; refer to Set up a configuration record for Sugar for more details.

Configuration during Project Initialization

Admins can also configure their Sugar connector during the project initialization if you have a license for Sugar. In that case, the initialization wizard prompts you to provide the URL of a Sugar instance during project setup. When prompted, follow these steps.

  1. In the Sugar URL field, enter the URL of the Sugar instance that you want to connect to your Experlogix Smart Flows project.

  2. Select Next.

The Create connector Authenticate with Sugar window displays.

Sugar Create Connector Server.png
  1. In the User name field, input the admin username for your selected Sugar instance.

  2. In the Password field, input the admin password.

  3. In the I want to install/update the Sugar package checkbox, select the checkbox.

A check mark displays. Smart Flows creates an app package for Sugar.

  1. Select Next.

The Create connector Install your Smart Flows sugar package window displays.

Authenticate Sugar.png