cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

Send Calendar Invites

Hi Guys,

 

Does anyone knows how to function this? if I select the Save button recipients will receive calendar invites. 

This are the fields : Meeting Name, Objective, Venue, Start Date time, End Date time, Agenda

Below is the screenshot.

save.png

Thank you so much.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Responsive Resident
Responsive Resident

Re: Send Calendar Invites

Hi!

 

What is your 'EmailRecipients' variable? The first value of Office365.V2CalendarPostItem should be the calandar you want to create the event in. For instance you can have a dropdown with the Items property set to:

Office365.CalendarGetTables().value.DisplayName

And then set the OnSelect of the save button to

Office365.V2CalendarPostItem(Dropdown1.SelectedText.Value,...

As far as I can see you haven't specified who to invite, if that is what 'EmailRecipients' is, you need it to add it inside the curly brackets, so your complete code could look like:

 

Office365.V2CalendarPostItem(
    Dropdown1.SelectedText.Value,
    createMeetingNameTextInput.Text,
    timeStartDatePicker.SelectedDate + Time(
        Value(startDateHr.Selected.Value),
        Value(startDateMin.Selected.Value),
        0
    ),
    timeEndDatePicker.SelectedDate + Time(
        Value(endDateHr.Selected.Value),
        Value(endDateMin.Selected.Value),
        0
    ),
    {
        Body: createMeetingObjectiveTxtInput.Text,
        IsHtml: true,
        RequiredAttendees: EmailRecipients
    }
)

I believe you also need to format the 'EmailRecipients' as e-mail adresses, otherwise it might not get sent. 

 

 

View solution in original post

Highlighted
Responsive Resident
Responsive Resident

Re: Send Calendar Invites

If you are using the Office 365 Users connector you could pretty much forgo the EmailRecipients variable and use

 

RequiredAttendees: Concat(recipientGallery2.AllItems, Mail & "; ")

Or you can have the button update the context of EmailRecipient with the above in the beginning of the code, if you want to keep the variable for some reason. 

 

Glad I could help!

 

 

View solution in original post

6 REPLIES 6
Highlighted
Helper V
Helper V

Re: Send Calendar Invites

This is my error, I think it has something to do with EmailRecipients i'm not sure
error2.png 

Highlighted
Helper V
Helper V

Re: Send Calendar Invites

This is my formula

OnSelect Save Button

Office365.V2CalendarPostItem(EmailRecipients, createMeetingNameTextInput.Text, timeStartDatePicker.SelectedDate + Time(Value(startDateHr.Selected.Value),
Value(startDateMin.Selected.Value), 0),
timeEndDatePicker.SelectedDate + Time(Value(endDateHr.Selected.Value),
Value(endDateMin.Selected.Value), 0),
{Body: createMeetingObjectiveTxtInput.Text, IsHtml: true})

Highlighted
Responsive Resident
Responsive Resident

Re: Send Calendar Invites

Hi!

 

What is your 'EmailRecipients' variable? The first value of Office365.V2CalendarPostItem should be the calandar you want to create the event in. For instance you can have a dropdown with the Items property set to:

Office365.CalendarGetTables().value.DisplayName

And then set the OnSelect of the save button to

Office365.V2CalendarPostItem(Dropdown1.SelectedText.Value,...

As far as I can see you haven't specified who to invite, if that is what 'EmailRecipients' is, you need it to add it inside the curly brackets, so your complete code could look like:

 

Office365.V2CalendarPostItem(
    Dropdown1.SelectedText.Value,
    createMeetingNameTextInput.Text,
    timeStartDatePicker.SelectedDate + Time(
        Value(startDateHr.Selected.Value),
        Value(startDateMin.Selected.Value),
        0
    ),
    timeEndDatePicker.SelectedDate + Time(
        Value(endDateHr.Selected.Value),
        Value(endDateMin.Selected.Value),
        0
    ),
    {
        Body: createMeetingObjectiveTxtInput.Text,
        IsHtml: true,
        RequiredAttendees: EmailRecipients
    }
)

I believe you also need to format the 'EmailRecipients' as e-mail adresses, otherwise it might not get sent. 

 

 

View solution in original post

Highlighted
Helper V
Helper V

Re: Send Calendar Invites

IT works!!! now i'll search on how to format the 'EmailRecipients' as e-mail addresses THANK YOU SO MUCH!

Highlighted
Responsive Resident
Responsive Resident

Re: Send Calendar Invites

If you are using the Office 365 Users connector you could pretty much forgo the EmailRecipients variable and use

 

RequiredAttendees: Concat(recipientGallery2.AllItems, Mail & "; ")

Or you can have the button update the context of EmailRecipient with the above in the beginning of the code, if you want to keep the variable for some reason. 

 

Glad I could help!

 

 

View solution in original post

Highlighted
Helper V
Helper V

Re: Send Calendar Invites

Hi @SimonPiquer 

 

Actually, you're a big help! Thank you so much it works! 🙂 thank you so much! thank you!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Come join us today! Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (2,847)