Http request activity html body

i want to create this in html body parameter of htttprequest activity .

[{

    "status": [{

        "operator": "equals",

        "value": {

            "text": "done"

        }

    }],

    "is_preview": [{

        "operator": "equals",

        "value": {

            "yes_no": false

        }

    }],

    "created_at": [{

        "operator": "equals",

        "value": {

            "date": "2020-08-12" 

        }

    }]

Hi @oumayma_lajili1

The easiest way is to save it as a text file in your project folder, and then do this:

  1. Use Read Text File activity to read it into the String variable
  2. Pass this String variable in the body parameter

It will work out of the box.

There are other ways too, if you want to go more advanced.

2 Likes

Big Thanks! It works for me finally :smiley: :smiley:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.