Send data from Microsoft Azure Forms to Synerise

Published October 06, 2021
Modules
Difficulty
Selected Clients
carrefour logo

You can integrate Microsoft Azure Forms with Synerise to collect data from the forms in Synerise and create new customer profiles or update the existing ones.
In this use case, a submission of a form that contains three fields (name, surname and email address) launches a workflow that creates a customer profile or updates an existing profile with identical credentials.

Note: Completing this procedure requires some knowledge on sending API requests using cURL, Postman, or similar tools.
Workflow that sends data from forms to Synerise

Prerequisites


Access to Microsoft Forms and Microsoft Azure.

Process


In this use case, you will go through the following steps:

  1. Create an incoming webhook.
  2. Create a form.
  3. Create a workflow.

Create an incoming webhook


Create an incoming webhook to which you will send the data submitted through Microsoft Forms.

  1. In Synerise, go to Automation > Incoming > New integration.

  2. Enter the name of the webhook.

  3. In the Endpoint section, click Define.

    Important: The URL field is already is filled in with the endpoint to which the data submitted throught the form will be sent.

    1. Optionally, you can add an icon to this integration.
    2. Confirm by clicking Apply.
      Configuration of the Endpoint section
      Configuration of the Endpoint section
  4. In the Incoming data section, click Define.

  5. Click Retrieve data. Right after you click the button, send a request to the endpoint in the Endpoint section with the sample of data that will be sent through forms. The system waits for the incoming request for 1 minute and 30 seconds. Example request:

    Important: Replace the endpoint URL from the example with the endpoint URL from step 3.
    curl --location --request POST 'https://{SYNERISE_API_BASE_PATH}/automation-endpoint/endpoints/END_ID/trigger' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "firstname": "test",
        "lastname": "test",
        "email": "test"
    }'
        
  6. When the endpoint receives data from the request, verify the list of variables. If the variables include those which are in the payload (in this case, firstname, lastname, and email), click Define. If not, click Start again re-send request, and wait for the results.

    Collected variables from the request
    Collected variables from the request
  7. Click Save & publish.

    Tip: You can read the documentation of Incoming integration here.

Create a form


In this part of the process, you need to create a form in Microsoft Forms app and configure the flow of sending data from the form to Synerise.

  1. Go to Microsoft Forms app.

  2. Create a form.

    Tip: If you need help, you can refer to the documentation.

    Example form used in this use case
    Example form used in this use case
  3. Go to Azure Portal. From the list of Azure services, select Logic Apps. If you don’t see the icon right away, click More services and find the app.

    Azure services available in the Azure Portal
    Azure services available in the Azure Portal
  4. As the connector of the Logic App, select Microsoft Forms.

    Example form used in this use case
    Connecting Logic App with Microsoft Forms
  5. As a trigger, from the dropdown list, select when a new response is submitted.

  6. Choose the form you want to connect.

    Selecting a form
    Selecting a form
  7. In the panel of operations, choose Microsoft Form Standard. As an action, choose get response details.

  8. From the Form Id dropdown list, select the ID of your form.

  9. From the Response Id dropdown list, As response Id select List of response notifications Response Id.

    Selecting an action to be performed when a form is submitted
    Selecting an action to be performed when a form is submitted
  10. In the panel of operations, choose HTTP. Configure this section according to the incoming webhook you created before. The body must be identical to the body you defined in the incoming webhook in Synerise.

    Configuring the endpoint section
    Configuring the endpoint section
  11. Save the workflow.

Create a workflow


In this part of the process, you create a workflow in Synerise. The workflow starts with the business event trigger that is launched every time a customer submits the form. In response to that, a customer profile is created or updated if it exists already.

  1. In Synerise, go to Automation > Workflows > New workflow.
  2. Enter the name of the workflow.
  3. As the first node, select Business Event. In the configuration of the node:
    1. Select the incoming webhook you created as the first part of this use case.
    2. Confirm by clicking Apply.
      Configuring the Business Event node
      Configuring the Business Event node
  4. Add the Outgoing integration to the workflow. In the configuration of the node:
    1. Enter the name of the webhook. This name will be used as a value of the name parameter of the webhook.response event.
    2. Select the POST method.
    3. Enter the endpoint URL:
      • For workspaces hosted in Microsoft Azure: https://api.synerise.com/v4/clients/batch
      • For workspaces hosted in Google Cloud Platform: https://api.geb.synerise.com/v4/clients/batch
    4. Enter the following headers:
      • set the content-type header to application/json (default),
      • set the accept header to application/json,
      • set the api-version header to 4.4
    5. Enter the request body. For the form used in this case, the body is as follows:
      {
          "email": "{{ request.body.email }}",
          "firstname": "{{ request.body.firstname }}",
          "lastname": "{{ request.body.lastname }}"
      }
             
    6. In the Authorization section, select By API key.
    7. From the dropdown list, select API key that has permissions to create or update customer’s data.
      Tip: You can read more about API keys here and you can find more information about the endpoint and required API key permissions here.
  5. Confirm by clicking Apply.
    Configuring the Outgoing integration node
    Configuring the Outgoing integration node
  6. Add the End node.
  7. Activate your workflow by clicking Save & Run.
Final workflow configuration
Final workflow configuration

Testing


If the workflow works, you will see a new/updated customer in the Profiles module and a success in the statistics of the Outgoing integration node:

Workflow statistics
Workflow statistics

Watch video


You can watch the video that presents the whole process of implementing this use case.

Check the use case set up on the Synerise Demo workspace


You can check the incoming integration settings directly in Synerise Demo workspace.

You can also find there workflow created in this use case.

If you don’t have access to the Synerise Demo workspace, please leave your contact details in this form, and our representative will contact you shortly.

Read more


😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker