how to get data in excel format from post API
i have api link and parameters how get data i will share link and parameters. you will share sequence file.
link: https://hro.srijo.com/mis109scripts/AsbIViewRest.dll/datasnap/rest/TASBIViewREST/getiview
param:
{
“_parameters”: [
{
“getiview”: {
“name”: “api”,
“axpapp”: “mis”,
“username”: “user”,
“password”: “2ddb40d42bdb”,
“pageno”: 1,
“pagesize”: 100,
“sqlpagination”: true,
“params”: {
Add a “For Each” activity to iterate through the JSON array. Assume the array is in jsonResponse("result") (adjust based on actual response structure):
UiPath
Copy code
For Each item In jsonResponse("result").AsEnumerable
Add Data Row:
Inside the loop, add an “Add Data Row” activity:
ArrayRow: {item("field1").ToString, item("field2").ToString, ...} (adjust based on actual response fields)
DataTable: dataTable
Write Range:
Add a “Write Range” activity to write the DataTable to an Excel file: