Forum Discussion

dc_29_iib's avatar
dc_29_iib
Occasional Contributor
6 years ago
Solved

put values from properties to request body

Hi,

I'm trying to put value in rest request body from properties using groovy script. Can you please help

Thanks in advance

{
  "user": {
    "name": "${Properties#name}"
    "account":  "HSBC"
    "Skill" : "BROKER"
  }
}

 

  • First execute Properties step and then the REST request(Drag Porperties to step 1 and then Request 1 to next step). The property expansion you have used is correct.

1 Reply

  • avidCoder's avatar
    avidCoder
    Super Contributor

    First execute Properties step and then the REST request(Drag Porperties to step 1 and then Request 1 to next step). The property expansion you have used is correct.