Announcement

Collapse
No announcement yet.

HTTP Post request via Workflow

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • HTTP Post request via Workflow

    Hi,

    I'm sending a Post request via Workflow whenever a Opportunity update matches the criteria.

    Information is like this:

    Content-Type: None

    Payload:
    {
    "assignedUserId": "{$assignedUserId}",
    "contactsIds": "{$contactsIds}",
    "name": "{$name}",
    "stage": "{$stage}",
    "teamsIds": "{$teamsIds}",
    "type": "{$type}"
    }


    But the data i'm receiving is missig the "contactsIds" and "teamsIds" attributes:

    {
    5f4d0310425dda68f

    Name Test
    Contact

    cartAbandonment
    }


    I'm doing it the wrong way? Or there is another way to pass this attributes via Post request?

  • #2
    Hi,
    Try to do the same but with defined Content-Type. E.g.:
    Code:
    Content-Type: application/json

    Comment


    • #3
      Code:
      Content-Type: application/json
      Is not working for me. I'm using BottlePy for the webserver.

      Using the same payload structure, here's what I got:

      Code:
      print(request.content_type)    -> application/json
      print(request.content_length)  -> 0
      print(request.body.read())     -> b''
      print(request.json)            -> None

      Comment


      • #4
        I think, there are some experienced developers that can help you. For example, I'd definitely recommend that you check out Rocketech team https://rocketech.it/workflow . They are real professionals in the field.

        Comment

        Working...
        X