How to get specific data from API Response

Hi All,

Can someone help me in getting specific data like server id, start time stamp, end time stamp , event number from given below API Result

{“maintenances”:[{“maintenanceGroup”:299946,“applicationId”:“APPD-231992”,“mcid”:“10APP1999943”,“eventNumber”:" * “,“serverId”:” * ",“userId”:“QWERTY”,“userComment”:“under maintenance”,“startTimestamp”:“2022-05-03 09:23:00.000+0200”,“endTimestamp”:“2022-05-05 09:23:00.000+0200”,“isCancelled”:false}

Thanks,
Naresh

Hey @Mandava_Naresh,

Go through the below thread this will help you.

Thanks,
Sanjit

1 Like

hi @Mandava_Naresh ,

Try convert the output to JSON with WebAPi activities from uipath and you can jsonOBJ(“Key”) to get specific data

HAPPY AUTOMATION !!!

1 Like

Deserialize the string with the activity “Deserialize JSON” into an JObject. After that you can access the values like this:

jobj.Item("maintenances")(0)("applicationId").ToString

image

image

1 Like

Thank you @ptrobot

1 Like

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