How to get remaining records which we can't fetch through Single API call in Zoho Creator? - zoho

I am fetching data from Zoho Books to Zoho Creator using getRecords() but I am able to fetch only 200 records.
How can I fetch the remaining records (Suppose I have 300 records, through first call I got 200 records, How to fetch the remaining 100 records)?

resp=zoho.books.getRecords("invoices", "org_id","page=4");
has_more_page=resp.get("page_context").getJSON("has_more_page");
info has_more_page;
has_more_page will return true if more record are available

Related

Returning millions of records from api response laravel

I have a requirement where i am supposed to return millions of records from my database when an api endpoint is being called. As per requirement, pagination is being done on the frontend so returning paginated data is not an option. I have tried this;
$this->employee_records = DB::table('master_data')->select(DB::raw("employee_number, first_name, middle_name, last_name, ministry, grade, original_date_of_hire, provider_name, pfa_name, date_of_birth"))->orderBy('first_name')->cursor();
But the load time is still in minutes. How can i optimize this? Thanks
You can give try to ElasticSearch, it can get job done faster, if not fastest!
https://www.elastic.co/

HTTP Get to compare to Dataverse fields

HTTP Get to compare to Dataverse fields
an hour ago
I'm having trouble with my flow. I'm not sure whether to have this flow as scheduled or not at the moment. There's an external database that contains a field for a name that I need. This is collected by another piece of software. In my Dataverse table I don't have the name, but I need it.
So I'm trying to get it by using an HTTP Get request. I'm trying to compare the CustomerID from each row in the HTTP request to the CustomerID in the Dataverse table (these match up). If the CustomerIDs match up, the name is put into the Dataverse table using Update a row.
Here is what I have so far
-Dataverse list rows
-HTTP Get
-Parse JSON HTTP body
-Apply to each CustomerID from Parse JSON
-Apply to each value from list rows
-Condition - if JSON CustomerID = Dataverse CustomerID
-Update row. RowID = CurrentItem
Nothing seems to work. I've had a variety of errors.
Is there a better method to achieve this?
Thank you

Rest API Call in uipath

My requirement is to fetch the data from rest api data and store it in separate variable. I had the endpoint url(https://abcdev.service-now.com/api/now/table/sc_multi_row_question_answer?sysparm_query=parent_id%3Dxxxxxxxxxxxxxxxxxxxx&sysparm_display_value=true&sysparm_exclude_reference_link=true&sysparm_fields=variable_set%2Cvalue%2Citem_option_new%2Crow_index).This is fetching the datas for all 3 rows. But i wants that this user needs to be added in this delegate access like that.
I have attached the image for which field i want to fetch.
I wants to fetch user to be added,level of access required,inbox,calender,tasks,contacts,notes,journal,select required send rights for these field i wants to fetch row by row.kindly assist me in that.
You will receive the response in JSON with all the rows, but you can use de serialize JSON Array activity to de serialize the JSON in each record with all the columns you have mentioned.
And Once you have the rows in the array JSON you can loop through it and get the details for each field.

How to list line items along with Zoho books Sales orders list through Zoho Books API?

When I listing the Zoho Books sales order via Zoho Books API, The line_items of the sales order is not returning.
Is there any way to get the line items along with the sales order list via API?
Otherwise, I have to request each sales order to get the line items of that order.
when you fetch the list of sales orders then in response line items detail not be there. you need to fetch individual sales order then you will get all details.

how to get total results in laravel pagination?

I have collection $data=$qwery->paginate();
Further in the loop, I send an api request for each element and receive data, which I use with setAttribute to add to the current element of the collection.
In my blade file, I display the information in the form of a table. The last row of the table should contain the total amount of the field that we added using the api request for all elements on all pages. Can I get all collections of all pages in the controller and then calculate the amount using the standard collection method? I tried to use get() instead of pagination, but the request is taking too long, due to API. I can calculate the amount I need for the current page. But how can I find out the amount for all pages at once? I do not ask for a ready-made solution, just your ideas
Use $data->total() to get the total number of items in your paginated results.
Read more here: https://laravel.com/docs/7.x/pagination#paginator-instance-methods

Resources