cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Resolver I
Resolver I

Office365 Connectivity V4CalendarPostItem

Hi All, 

 

I am trying to stop my Calendar invite from sending to the person saving the item. My current coding is calling the users Calendar which I do not want it to, but I can't seem to replace it out successfully? 

I believe I need to replace this line with something, Anyone got any suggestions? 

 

LookUp(Office365Outlook.CalendarGetTables().value, DisplayName = "Calendar").Name,

 

 

Current Full Code on select of a button:

 

UpdateContext({VarMode: View}); SubmitForm(Form_DC);
Office365Outlook.V4CalendarPostItem(
//Logged in users calendar (Might need to change to selected person)
//ThisItem.'Email',
LookUp(Office365Outlook.CalendarGetTables().value, DisplayName = "Calendar").Name,
// Subject
"Duty Coordinator - " &ThisItem.Office,
//Time Start + UTC timezones etc
DateAdd(DateTimeValue(VarStart.Text),TimeZoneOffset(), Minutes),
//Time End + UTC timezones etc
DateAdd(DateTimeValue(VarEnd.Text), TimeZoneOffset(), Minutes),
//Timezone for Meeting
"(UTC+10:00) Canberra, Melbourne, Sydney",
{requiredAttendees: ThisItem.'Staff Member'.Email,
responseRequested: true,
location: ThisItem.Location,
importance:"normal",
showAs:"free",
isReminderOn: true,
reminderMinutesBeforeStart: 15}
);

 

 


Thank you!!!

Kind Regards,

Tia

 

1 ACCEPTED SOLUTION

Accepted Solutions

We ended up creating a flow instead of housing it within the powerapp. 

 

When an item on the list is edited or modified >

Create event (v4) 

Set to a Calendar that isn't person-specific

Also added in the StartTime and EndTime as patched fields to allow the flow to grab better and format appropriately. 

 

In this App there is a singular field that gets modified/changed (Staff Member)

 

View solution in original post

2 REPLIES 2
Community Support
Community Support

Hi @Tia ,

"Office365Outlook.V4CalendarPostItem" is used to create event.

Its first parameter is calendar id.

"Office365Outlook.CalendarGetTables().value" is used to return calendars.

LookUp(Office365Outlook.CalendarGetTables().value, DisplayName = "Calendar").Name

 So this formula will return one calendar's Name.

All the formulas are not related to "Email".

So could you describe more clearly about your demands?

What do you want by using "Office365 Connectivity V4CalendarPostItem"?

What kind of  calendar id do you want to use for this function?

 

 

Best regards,

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

We ended up creating a flow instead of housing it within the powerapp. 

 

When an item on the list is edited or modified >

Create event (v4) 

Set to a Calendar that isn't person-specific

Also added in the StartTime and EndTime as patched fields to allow the flow to grab better and format appropriately. 

 

In this App there is a singular field that gets modified/changed (Staff Member)

 

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (91,043)