How to make the it

HI I am working with API
wanted to know how can make the payload dynamics the payload has multiple fields that i want to make dynamic like first name , last name , Country etc

1 Like

Hey @manoj2500

Is this related to UiPath ?

Could you please explain a bit more in details (with screenshots if possible)

Thanks
#nK

Hey @manoj2500

Of course. This is possible using string format or string concatenation

String.Format("{
 ""firstName"":{0}
}",<yourFirstNameVariable>)

Hope this helps.

Thanks
#nK

Of course @manoj2500

One piece of code for all the payload properties which should work for all transactions

Thanks
#nK

Nope the syntax I mentioned above.

You can please paste the entire payload so.that I can provide the code again for it.

Thanks
#nK