Google calendar sync issue with "Remember the milk" subscribed calendar - c++

We are using Google Calendar API v2 for syncing the Google calendar events to our desktop application. The application retrieves all calendar events and keeps it locally for future reference.
I have sync issues with my "Remember the Milk" calendar, which I subscribed to using my Google calendar.
Here is my application flow:
Initially fetch calendar list by using the following HTTP request:
https://www.google.com/calendar/feeds/default/allcalendars/full
Fetch all events from calendar with the Calendar ID obtained in the previous request: http://www.google.com/calendar/feeds/CalendarId/private/full?orderby=lastmodified&sortorder=descending&singleevents=true
Process each calendar one by one and save the calendar updated-min tag value as last calendar sync, in the next sync use this updated min value for retrieving updated events.
The documentation says it should give only updated events, but my "Remember the Milk" calendar, always gives all events as updated events (on every 20 to 30 minutes).
What am I doing wrong here?

Look at your query string. You are missing the updated-min value. The query string should read.
http://www.google.com/calendar/feeds/CalendarId/private/full?orderby=lastmodified&sortorder=descending&singleevents=true&updated-min=2005-08-09T10:57:00-

Related

Power Automate - Wait till Power BI dataset refresh completes\fails

I have created a Flow in Power automate, have used a Refresh a Power BI dataset component , there is no issue in terms of functionality as such and I am able to refresh the dataset successfully - so far so good (till the time the dataset gets refreshed successfully)
I have added a send email component post the dataset refresh, Now, the thing is the 'Refresh a dataset' component doesn't wait till the time the dataset is completely refreshed, it just triggers the refresh with an output value as Succeeded and proceed towards sending an email while the dataset refresh is still in progress
Now, when the dataset refresh fails due to some reason - the Power Automate flow has already completed and has lost the track of the refresh
How can I make it wait till the time the dataset refresh has completed successfully or has failed and then send an email accordingly?
I have tried below but the outcome is always Success
Solved: Get alert when refresh a dataset fail - Power Platform Community (microsoft.com)
The Refresh action sends an API call to the Power BI REST API. The Refresh Dataset endpoint does not respond with an outcome indication. It just responds with whether or not the refresh request was accepted.
There are two other endpoint options Get Refresh History and Get Refresh Execution Details which you would need to monitor for completion of your refresh. I'm not saying it's impossible to implement something with Power Automate to do this, but honestly, you will have a better outcome just writing it yourself.
Power BI's lack of admin and monitoring tooling is by far its biggest shortcoming--especially surrounding refresh management. The sooner you realize you will not get out of it what you want and just accept that you're going to have to roll your own, the sooner you'll get what you need.

Facebook marketing API to get campaigns active for particular day

I have script which pulls all campaigns from Facebook marketing API and then respective ads from it.
I have 200 campaigns. I need campaigns which were active on some past date say 12 Nov 2020. The campaign in inactive now, but was active on particular date. So when I query (using REST) for that particular date filtering by start and end date as 12 Nov 2020. It doesn't send me that campaign in results since campaign is not really active NOW.
Is there a way where I could get active campaigns on a particular date? or other way get only campaigns which really have some data on a given date?
Problem with loading all campaigns and then subsequent ads to check for data is huge problem due to throttling when we have good no of campaigns.
Thanks
You need to query with all the effective statuses in the filter object for the campaign. That will provide you with all the data you are after and not just the currently active.
Append the following filter to your graph api call for campaigns:
&filtering[]={"field":"effective_status","operator":"IN","value":["ACTIVE","PAUSED","DELETED","ARCHIVED","IN_PROCESS","WITH_ISSUES"]}

Scheduled import of jsons in powe BI Desktop

I have a restricted URL where every 10 mins. a json is incorporated. Accordingly, I have developed several R visuals in power BI Desktop by importing a sample json from this URL and thereby have published them in Power BI service ( in Power BI Pro trial version ).
How can I schedule import of the latest json every 10 minutes from this URL so that the reports so developed are automatically updated as per the latest json?
Configuring scheduled refresh is what you're looking for.
This will enable you to import the latest json every time you specify it.
If you're desperate for a 10 minute refresh, you cannot do that.
The best you can do is use Azure Analysis services / SSAS to connect to the JSON, do all the ETL/whatever there, and then direct query to it. You'll have to set the SSAS/AAS to Process very often.
Direct query allows for 15 minute refreshes.

Microsoft Dynamics 365 - workflow process to generate a calendar entry that synchronises with Exchange/Outlook calendar

I'm building a workflow process in Dynamics 365 triggered by changes to a date/time field in the Opportunity entity - this should create (or update) a [Dynamics] Calendar entry for the user to whom this Opportunity is assigned on the date/time in question, which should then automatically synchronise with the user's Exchange calendar because server side Exchange synchronisation is enabled.
I've hit a brick wall with this having tried every option I can think of - the following aspects work but not the end to end solution:
1) The workflow is triggered as expected, and correctly creates the calendar entry in the Dynamics Calendar;
2) If I manually create an entry in the Dynamics Calendar it appears in the user's Exchange calendar, so I know the server side synchronisation is working correctly.
However ... calendar entries created by my workflow are not synching to the Exchange calendar.
I'm convinced I must be missing something extremely obvious but can't fathom it!
Resolved this now ... Appointments that are created by a workflow process exist in an "open" state (on our Dynamics instances - not sure if this has anything to do with instance settings) whereas manually created Appointments get a status of "scheduled" - it seems the "open" ones don't get synchronised with Exchange.
I couldn't find any settings / filters to specifically include open Appointments in the synchronisation, so instead I added a step in my workflow to set the Appointment status to "scheduled", which did the trick.

Is there a way to pull posts by the date they appear on the timeline? Like from 1987?

On the Facebook timeline, you can set the date an event happened. Like when you were born, married, really anything. However, when using the API, it only searches on the created date.
Example: If I create an event today and set the date to March 18, 1987, it shows up on my timeline properly, but the API pulls it out as an event that happened today as its 'created date' is today.
Is there a way to pull posts by the date they appear on the timeline?
There's no way yet to retrieve life events yet. You only can retrieve the status that it's been added to his/her timeline. However, you may try to get the date from story string using RegEx or substring...