How do I recreate this code in UiPath

I have this code how can recreate in UiPath
var company1 = new JObject()
company1.Add(“CompanyId”, 138)
var company1Info = new JObject()
company1Info.Add(“Score”, “123”)
company1Info.Add(“DocumentKey”, “76149”)
company1Info.Add(“DocumentUrl”, “Test.pdf”)
company1Info.Add(“IsSuccess”, “”)
company1Info.Add(“Comment”, “”)
company1.Add(“CompanyInfo”, company1Info)
companiesInfo.Add(company1)

To Create the below
{
“CompaniesInfo”: [
{
“CompanyId”: 138,
“CompanyInfo”: {
“Score”: “123”,
“DocumentKey”: “76149”,
“DocumentUrl”: “Test.pdf”,
“IsSuccess”: “”,
“Comment”: “”
}
},
]
}

Hi @duaine.b,
Use invoke code activity to achive this.

Regards,
Arivu

Hi @duaine.b

what about the following code?
Main.xaml (10.6 KB)

Regards

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