QuickBooks Online 1000 results issue - quickbooks-online

QuickBooks Online only supports retrieving 1000 results of a query as per https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/020_key_concepts/00300_query_operations. Currently I am specifying toDate and fromDate parameters to get around this. Is there any other way to get around this?

You need to use pagination to traverse the full record set: https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/020_key_concepts/00300_query_operations/0100_key_topics#Pagination

Related

How to write an odata filter in a logic app where field has date time and I just want to use date portion

There is a record in the Salesforce Stay Information which has the following information. "Booked_Check_in_Date_Time__c": "2022-11-05T00:59:00Z"
When I try the following oData filter it does not work.
Booked_Check_in_Date_Time__c eq 2022-11-05
What do I need to change to bring back this record.
This is because you are not using the complete query to filter the results.
What do I need to change to bring back this record.
In your case you need to use the below query format to get the filtered results.
Booked_Check_in_Date_Time__c eq `2022-11-05T00:59:00Z`
RESULTS:
It looked like I needed to use Local_Booked_Checkin_Date__c to achieve what I needed. If I used Booked_Check_in_Date_Time__c I would have to add time to the filter which I did not want to.

Filter Microsoft Graph Drive Search Results where Modified By is Current User

I'm attempting to get Drive results using Microsoft Graph that are filtered by the current user.
This is as far I have gotten, which is return results sorted by last modified date, but it's returning results modified by other users.
I want it to only return results where last modified or preferably modified at all by the current user. Is there a way to do that?
So far, I have tried throwing in {User.Name} around the place, but that hasn't gotten me anywhere
https://graph.microsoft.com/v1.0/me/drive/search(q='')?$orderby=lastModifiedDateTime desc
Or is this fruitless, and I should use the insights/used endpoint even though it's in beta?
https://graph.microsoft.com/beta/me/insights/used
Cheers
According to your description, you want to filter Drive by last modified date and current user.
In order to get lastModifiedBy field, we need to able track changes to the file. Please try following API:
GET /me/drive/root/delta
Please note that in OneDrive for Business and SharePoint, delta is only supported on the root folder.It does not apply to subfolders other than root folder.
For more detail, we can refer this document. Unfortunately, there isn’t a perfect solution to solve your case.
Yes, you could use the https://graph.microsoft.com/beta/me/insights/used to get results where last modified or preferably modified at all by the current user.
But APIs under the /beta version in Microsoft Graph is in preview and are subject to change. Use of these APIs in production applications is not supported.
For the details, please refer to here.

Alternative for a Nested Aggregate as a group filter SSRS

I have a report that needs to get only the top 10 of that category and sort it from highest value to lowest having this kind of expression:
=Sum(Sum(Fields!Measure.Value, "RowGroup1"), "RowGroup2")
But the problem is, the only filter that SSRS accepts is the simple aggregate:
=Sum(Fields!Measure.Value)
Not using the nested aggregate will give the wrong top 10.
Another thing, the client is using Analysis Services as the connection for the report so I cannot tweak the dataset by using a query. The fix should be inside SSRS. Is there anyway to do this? Please help me.
Please try using Top N filter from the chart properties. You might want to sort the values before using the filter.

import old data from postgres to elasticsearch

I have a lot of data in my postgres database( on a remote). This is the data of the past 1 year, and I want to push it to elasticsearch now.
The data has a time field in it in this format 2016-09-07 19:26:36.817039+00.
I want this to be the timefield(#timestamp) in elasticsearch. So that I can view it in kibana, and see some visualizations over the last year.
I need help on how do I push all this data efficiently. I cannot get that how do I get all this data from postgres.
I know we can inject data via jdbc plugin, but I think I cannot create my #timestamp field with that.
I also know about zombodb but not sure if that also gives me feature to give my own timefield.
Also, the data is in bulk, so I am looking for an efficient solution
I need help on how I can do this. So, suggestions are welcome.
I know we can inject data via jdbc plugin, but I think I cannot create
my #timestamp field with that.
This should be doable with Logstash. The first starting point should probably be this blog post. And remember that Logstash always consists of 3 parts:
Input: JDBC input. If you only need to import once, skip the schedule otherwise set the right timing in cron syntax.
Filter: This one is not part of the blog post. You will need to use the Date filter to set the right #timestamp value — adding an example at the end.
Output: This is simply the Elasticsearch output.
This will depend on the format and field name of the timestamp value in PostgreSQL, but the filter part should look something like this:
date {
match => ["your_date_field", "dd-mm-YYYY HH:mm:ss"]
remove_field => "your_date_field" # Remove now redundant field, since we're storing it in #timestamp (the default target of date)
}
If you're concerned with the performance:
You will need to set the right jdbc_fetch_size.
Elasticsearch output is batched by default.

Operations with dates

I need to check if is missing 10 days or less to arrive at a certain date.
I'm trying this:
if(date('d/m/Y') >= CakeTime::format('d/m/Y','30/04/2013','-10 days', true )) {
but apparently the Caketime::format is not working correctly.
Any help, pls?
CakePHP doesn't prevent you from using regular PHP functionality. If PHP itself already offers what you're looking for, it is even prefered.
In PHP, you can calculate the difference between two dates using DateTime::diff()
A quick search on StackOverflow gave me this question, which contains proper examples:
Date Difference in php on days?

Resources