cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
david9068
Helper II
Helper II

Add an event to outlook via sharepoint calendar

Hi,

 

Ive created an app for training registration. At the moment its all working apart from when i add an event to my outlook calendar the event shows as starting on the day i have added it and ending on the start time of the event on the sharepoint calendar.

 

I want it so that it just adds the event to the outlook calendar for the starting date shown on the event.

 

Please see images for more details.

 

Regards,

David

calendar_issue.pngTraining_error_outlook_calendar.png

2 REPLIES 2
v-monli-msft
Community Support
Community Support

Hi @david9068,

 

I'm not sure what you are trying to achieve. I saw that you mentioned that you also need the ending on the start time of the event on the sharepoint calendar. Not sure what did you mean by this part. I saw in your screenshot that it mostly looks like your are using a Form control. If this form's data source is outlook calendar, then I'm afraid that you cannot then also add a SharePoint calendar data source to the end time. As one form can only have one data source so far. If you want to update Outlook calendar together with SharePoint calendar, you might want to use Patch function.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-monli-msftSorry for my bad explaination.

 

What you explained in the last part of your message was correct. Im trying to put an event in outlook via sharepoint calendar data.

 

This is the formula im currently using. How would i encorpurate the patch function into it or would i need a new formula ?

Office365.V2CalendarPostItem(ddCalendar.Selected.Value, 
BrowseGallery1.Selected.Title, 
Text(BrowseGallery1.Selected.EventDate,DateTimeFormat.ShortTime), 
Text(BrowseGallery1.Selected.EndDate,DateTimeFormat.UTC), 
{Body: BrowseGallery1.Selected.Description, 
IsHtml: true, 
Location:BrowseGallery1.Selected.Location});
UpdateContext({CalButton:false});UpdateContext({CalButtonDone:true})

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,708)