Skip to content

Latest commit

 

History

History
47 lines (23 loc) · 1.53 KB

11-connectflow-06.md

File metadata and controls

47 lines (23 loc) · 1.53 KB

Update CRM

According to the mockAPI.io API documentation, the way to update a record is:

mockAPI Update Record

We need to know the {userId} for the record we want to update. We got this value in the response of the http request we did in this section, let's see how we can use this value at ay time in the flow:

  1. Get the 'mockAPI' Data Parser node number, there are several ways of doing this:

    • Clicking on NOTES icon

    Notes Icon

    • You can also double-click on the node, you will see the node number at the bottom left

    Node Number

    In this example, 'mockAPI' Data Parser node number is 5 (n5).

  2. Add a new HTTP Request node, add it to the canvas, and connect it to the previous HTTP Request node.

  • Choose PUT as the Method
  • Go to Endpoint URl, select mockAPIEndpointunder Custom Variables in Input Variables section
  • In the same Input Variables section, type '/', go to the mockAPIData Parser node (node 5 in this example), and select id:

DB record Id

  • Add Content-Typeas Header, with Value application/json

  • And configure the Body =

      {
          "videoCallScheduled": true,
          "specialist": "$(specialist)"
      }
    
  • Rename the node to 'Update CRM', and Save it

Now we are ready to test our flow !