web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sending outlook calend...
Power Apps
Unanswered

Sending outlook calendar invite using PowerApps

(0) ShareShare
ReportReport
Posted on by 118

Hi all you PowerApps gurus

 

I am trying to build a PowerApps which sends Outlook calendar invites to multiple requires attendees. I have watched Shane Young's excellent videos and my app works well as far as putting the appointment in my calendar. But when I select the required attendees from a combox, instead of their emails, I get builtinicon:Mail and outlook reports that the recipient doesn't exist (naturally!) y combo box gets it's feed from a people column in SP list. Mu code is requiredAttendees:Concat(selectAttendee.SelectedItems, Mail , ";"),  where selectAttendee is the combo box name. The same code works perfectly in Shane's  video. Why does it not work for me?  

Categories:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Siamak 

     

    Here is the code using t create Calendar invite

     

    Office365Outlook.V4CalendarPostItem(
     "Calendar",
     "Stalin Test",
     DateAdd(
     DateTimeValue(DatePicker3.SelectedDate & " 8:00:00 AM"),
     TimeZoneOffset(),
     Minutes
     ),
     DateAdd(
     DateTimeValue(DatePicker4.SelectedDate & " 8:30:00 AM"),
     TimeZoneOffset(),
     Minutes
     ),
     "(UTC) Coordinated Universal Time",
     {body: "Meeting Notes",requiredAttendees: Concat(RequiredAttendessCombo.SelectedItems.Mail, Text(Mail) & ";")}
    )

     

    StalinPonnusamy_0-1633211708490.png

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Siamak 

     

    The issue is how we select mail id

    requiredAttendees: Concat(selectAttendee.SelectedItems.Mail, Mail & ";")

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Siamak 

     

    Please refer to Create Calendar Invite blog if any questions regarding this post.

     

    Thanks,
    Stalin

    My blog posts

  • Siamak Profile Picture
    118 on at

    Many thanks @StalinPonnusamy for your quick reply and advice. The problem is that

    RequiredAttendessCombo.SelectedItems.

     does not accept Mail as an identifier. When I add a . after SelectedItems the only valid option it gives me is Result. If I add Mail instead, it gives me an error

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Siamak 

     

    Thanks for the info. Will find the issue. No issues.

     

    The source I'm using is Office 365 users. So Items property of my ComboBox Required Attendees is

    Office365Users.SearchUser({searchTerm: ""})

     

    If your Combobox items property is People/Person Column from SP then

    Items property of Combobox will be

    Choices([@SPList].ColumnName)

    Get the emails id's from the Person Combobox

    Concat(
     selectAttendee.SelectedItems.Email,
     Email & ";"
     )

     

    Note: If you get builtinicon:Mail means, not accessing right property

     

    Concat(selectAttendee.SelectedItems.Email,Mail&";") Change to Concat(selectAttendee.SelectedItems.Email,Email&";")

     

    If this information does not help you, Let me know the data source that you are using and your Items' property.

     

     

  • Siamak Profile Picture
    118 on at

    Thanks for the extra explanation. I'll try this and let you know the result

  • Siamak Profile Picture
    118 on at

    Ok @StalinPonnusamy I have had a few hours of frustration with this. I used the following Choices option as you suggested: 

     

    Choices([@'Edu-helpdesk-job-cats'].AllocateTo) 

     

    but  it doesn't list anything (gives me no drop-down at all.) You can see the source SP list and column in the code above 

     

    My original code for the combo box was:

     

    Item: Distinct('Edu-helpdesk-job-cats'.AllocateTo,AllocateTo.DisplayName)

     

     which works and gives me the correct drop down list of people.

     

    However the code below works but does not produce the correct recipient and instead tries to send the email to builtinicon:Mail

     

    requiredAttendees: Concat(
     selectAttendee.SelectedItems,
     Mail & ";"
     ),

     

     

    When I add a . after SelectedItems the only option I get is "Result"

     

     

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Siamak

     

    I see the issue now. Items Property is Correct but needs to set the Primary text and Searchfield for that Combobox

    Choices([@'Edu-helpdesk-job-cats'].AllocateTo) 
    •  Select the Combobox
    • Click "Edit" on the right-side properties
    • Set Primary text and Searchfield as "DisplayName"

    StalinPonnusamy_0-1633304823156.png

    Then get the email id's like

    requiredAttendees: Concat(selectAttendee.SelectedItems.Email, Email & ";")

     

     

  • Siamak Profile Picture
    118 on at

    Thanks @StalinPonnusamy . On first go, it still didn't work. I will have another go when I get a chance and am less busy.

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Siamak

     

    Ideally, the user/person combobox should have displayfields and searchfields like

    StalinPonnusamy_0-1633351408509.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard