Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Use a Dropdown to fill "ApproverToEmail" value

(0) ShareShare
ReportReport
Posted on by 20

Hi,

 

I want to place an approval button on my page and I want that the "ApproverToEmail" value must be fillet from a Dropdown or from a an Office365 variable like "Manager".

 

Here what I'm using now : 'Boutondemanded''approbation'.Run("approvator@mail.com";"sender@mail.com";DataCardValue2)

 

Can-you help please ?

 

Regards.

Categories:
  • Verified answer
    espacio Profile Picture
    espacio 20 on at
    Re: Use a Dropdown to fill "ApproverToEmail" value

    Hi,

     

    It's working now, here is the final Combobox's command :

    Office365User.SearchUser({searchTerm:"";top:999}).Mail

     

     

    Thank you very much for your help.

     

    Have a nice day.

     

  • Verified answer
    espacio Profile Picture
    espacio 20 on at
    Re: Use a Dropdown to fill "ApproverToEmail" value

    Hi @PriyankaGeethik ,

     

    thank you for your reply.

    No, the DataCardValue2 containt the ID, office365Users Manager value must be must be geted from a new field that I have to add.

     

    Regards.

  • espacio Profile Picture
    espacio 20 on at
    Re: Use a Dropdown to fill "ApproverToEmail" value

    Hi zmansuri,

     

    Thank you for your reply,

    I added the Combobox with the Item property, but it's showing only one entry and it's the town and not the user :

     

    espacio_0-1631782393613.png

    Regards

  • zmansuri Profile Picture
    zmansuri 6,048 on at
    Re: Use a Dropdown to fill "ApproverToEmail" value

    ComboBox Item property:

    Office365User.SearchUser({top:999});

    'Boutondemanded''approbation'.Run(ComboBox.Selected.Mail;"sender@mail.com";DataCardValue2)

  • PriyankaGeethik Profile Picture
    PriyankaGeethik 3,297 on at
    Re: Use a Dropdown to fill "ApproverToEmail" value

    Hi @espacio ,

     

    Is DataCardValue2 the value from which you required the office365Users Manager value ? 

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard