How to Pass a Json value as a Main argument

Hi team,
I have to pass a below value as a main argument, could you please help on this.

[{“DiscountType”: “1”, “DiscountAmt”: “10”},{“DiscountType”: “2”, “DiscountAmt”: “25”},{“DiscountType”: “3”, “DiscountAmt” : “30”}].

Thanks

As mentioned in your other topic The inner Doublequotes has to be escaped with a second "

"[{""DiscountType"": ""1"", ""DiscountAmt"": ""10""},{""DiscountType"": ""2"", ""DiscountAmt"": ""25""},{""DiscountType"": ""3"", “DiscountAmt” : ""30""}]"

it can be passed as a string. Depending on some constraints also a JArray DataType

UPD1 - Preview on the following thread:

  • with given context the answer was related to process modelling
  • with later given info by OP, need is about APPs

I have to get this data as a input argument from UiPath app.
Could you please help on this.

just share some screenshots / details
especially on what is aimed to do with this data / DataTable data

By using this one i have to declare the discount rate.

we will extract text amount from web and need to verify which discount rate is applicable.

Eg; If amount is below 100rs Discount type 1 will be applicable we have to give 10% discount.
If amount is above 200rs Discount type 3 will be applicable we have to give 30% discount

@manojmanu.rpa

If you need to pass some data from UiPath apps into the triggered process…

Then use set value and create the json string as you need with key and values

Then pass it as a string and then use desrialize in the process to get is as a json object and use it in process

Cheers