o365 graph api filter recurrance events - ms-office

I'm trying to limit the results of O365 events to a range of dates. https://graph.microsoft.com/v1.0/me/events?$filter=Start/DateTime+le+'{0}T00:00:00.0000000'+and+(End/DateTime+ge+'{1}T00:00:00.0000000'). This works except for recurrence events. With those, the End/DateTime is the same as the start.
Every time I try to drill deeper (reference recurrence/range/endDate or recurrence/range/type) I get a 400 invalid request.
Even if I just try to reference 'Type' (Singleinstance, ...) to determine if it is a recurrence item, that gives me a 400.
For a test, I even just tried showAs+eq+'busy' and that gives me a 400.
Not sure what I am doing wrong, and why the parameters don't seem to match the case of the results you do get back.
Has anybody been able to limit the recurrence events to a range? I know that you still have to query the details with a start and end date so it automatically breaks them down for you, but I would still like to limit the volume that comes back from the initial query. Thanks

If you are looking to get a list of events for a given date range, you may be better off using calendarView instead of events.
The calendarView will return each appointment instance including any instances of a reoccurring event that occurs within the specified time frame. It also takes into account any exceptions to a reoccurring event (i.e. when a single occurrence in a series was cancelled or moved).
The events method only returns single instance appointments and reoccurring appointments who's master (i.e. first occurrence) was in the specified time frame.
The events method returns data aigned with how it is stored by Exchange where calendarView aligns with how the data is rendered by the client.
For example, the URI https://graph.microsoft.com/v1.0/me/calendar/calendarView?startDateTime=2016-06-09T00:00:00Z&endDateTime=2016-06-10T23:59:59Z will return every calendar entry for June 9th, 2016.

Related

can some one help me create a Power Automate flow

A power automate flow triggered on a daily schedule will check the list for any tickets that meet (or exceed) due date and submit a ticket to Orion via email. The last run and due date will then be updated. The system may be used to trigger tickets in supplier interface in the future - the destination system should be considered in the list schema.
i am having a hard time to develop a flow that executes the above requirement.
In Power Automate, create a scheduled flow that runs every day.
Declare all variables you will need later.
Assuming you store the value of the last run timestamp in a configuration SharePoint list for example, search and use the action Get item to get the list item where the last run time is stored in this list (you're have to create it if not existing though).
Search and use the function utcNow() in an expression to get the current datetime value.
Convert the previous datetime value with the action Convert time zone to an ISO-8601 datetime using FormatDateTime() function according to your timezone.
Search and use the action Get list items to get all the items of day from your SharePoint list, and filter the query via an OData expression according to the rule (today's date =< last run date + frequency).
Search and use Send an email V2 to send email.
Search and use the action Update item to update the last run time that is stored in a list item in the configuration list mentionned at the beginning.

Events does not appear when making an Outlook query from Excel

I'm making an Excel sheet that helps me fill in my oursheet. To accomplish this I create a Power Query that takes data from my Outlook Calendar. However, I have noticed that recurring events only appears once. Also, there is nothing in the query that helps me figure out which events are recurring?
Can anybody help me get the recurring events into Excel through the query?
This is a bit of a conceptual shot in the dark from me, but if you're connecting to Exchange Online (from New Query -> Online Services -> Exchange Online) then you should see a column named Attributes, with records in it. If you look within those records, you should see each record has a field named AppointmentType--that might help you. There is also an IsRecurring field--which might be even more helpful. Further, there is a field called Recurrence, with a record in it that provides info about the recurrences, if any. Lastly, a FirstOccurence field and a LastOccurence field are also included, and might help you in some way as well.
I would think to first identify the recurring records (maybe based off the IsRecurring field, then get their attribute info related to each recurrence (most of which seems to be in the Recurrence field for each record) to construct the single entry items for the recurrences.

How to filter Sharepoint list in Flow by current date plus days?

I've got a Sharepoint list tracking items and renewal dates associated with them. I want to utilize MS Flow to get just the items from that list (which will eventually have about 200 items in it) that have a renewal date 60 days from now, and send an email with the info from the list. This would recur every day.
The recurring feature works fine, as does the list and email.. My issue is with filtering the list down. I had hoped to be able to use views I created in the list, couldn't find a method for that, so I've resorted to attempting to utilize the ODATA filtering option.
I use the AddToTime feature before grabbing the list to get the 60 days out date (which is returning the correct value based on the error string), but no matter what I get invalid expression when it runs on the filter.
Any guidance on this?
This is Sharepoint Online and Flow Online. An example query string that I've used is Renewal_x0020_Date eq [insert the output from the Add to time flow item before].
RESOLVED!
Turns out, all I had to do was place single quotes around my object for the calculated date/time in my ODATA filter.

How to trigger Javascript in CRM VIew Refreshing?

I create one javascript function For calculate the No.Of Days from created Date and show in one Field.
And I add that script in Form Load and as well Form Save Actions.It was Working Fine.
Now My question is,I need to trigger that javascript function grid's(view) refresh.Or I need to calculate and show the No Of Days Field without opening Form.
Now the noofdays field affected when the form will getting open.
I need noofdays field automatically updated From the Created on date?How to do this...Thanks in Advance
Trigger an javaScript function without opening the from is not possible.
If i understood correctly, you want to display the time period between the creation and current date in days.
If so:
A Solution would be:
On creation of the record the noofdays field will always be 1 or 0. However you look at it.
So you can fill that field on creation per default to 1 per Plugin, JS, or simply per workflow.
Now you need to update this field each day via workflow.
The workflow must retrieve all records, calcualte and update the noofdays field.
I reccomend to run this workflow after midnight.
The other solution: (I do not reccomend)
Create an Plugin which is registerd to the message "retrieve" and "retrieve multiple".
If the message is triggered, check if you are in the right entity and fake the output of the noofdays field or update it.

SharePoint Nintex Workflow Run Multiple Conditions

I was hoping you could help me. I have a calendar in SharePoint 2010 that I want to run a Nintex Workflow when the following conditions are true:
A new item is created
The "Type of Leave" field equals "Vacation". This field I created as just a category for the types of requests.
The date that the item was created for already has an entry with the "Type of Leave" field equaling "Vacation."
The use of this will be that the first person to enter vacation on a day will be automatically granted. But if more than one person enters vacation on the day that another vacation day is on, it will go through an approval process through their manager.
Here's what I've tried/reviewed:
- Using a Condition within a workflow. I can't find an option that would complete this.
- I did try looking on line searching for different solutions. I've watched some tutorials but nothing with this kind of solution was present.
- One thought I did have was to have an additional calculated column that counted how many entries for the same day with "Vacation" and then use that in a condition if the column was greater than 1 but I couldn't figure out the syntax.
This is on SharePoint 2010.
Thank you!
have you considered using the rest interface to query the list from nintex:
http://msdn.microsoft.com/en-us/library/office/ff521587(v=office.14).aspx
You can call this service from nintext using the call web service action.
Apply the filters on the url as per documentation above and count the records returned you can then include that in the nintext condition.
I am not sure if Nintext supports calls to Restfull services (from memory i think it does).
If not, you can use the Soap web service, same principle as above just the parameters to call it are slightly more complicated:
http://msdn.microsoft.com/en-us/library/lists.lists.getlistitems(v=office.12).aspx
I don't think there's an need for REST. Once your workflow starts, query the list for items matching the current item booking date and put the result in a collection. You can query the collection length, and if it's >0 you can use that condition to steer the logic of your workflow.

Resources