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

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Change the status of a column after sending an email

(0) ShareShare
ReportReport
Posted on by 8

Hi everyone, and thanks in advance

I create a table in sharepoint (name, address,email ,mail,etc)

In power apps I create a gallery connected with the share point table and in each element, I have insert an email botton

now I send the mail but I don't know how update the "Mail" column with "Yes" after sending the mail.

"On select" (send emal button) I insert "office365outlook.sendemailv2" function and I send the mail but I don't know how to update the "MAIL" column in sharepoint with "YES".

 I try with "Update" and "pacth" but I don't resolve, someone can help me

Categories:
I have the same question (0)
  • v-chengfen-msft Profile Picture
    on at
    Re: Change the status of a column after sending an email

    Hi @Claudio65 ,

    Do you mean while sending the email, update the sharepoint etc column to "YES"?

    Could you please tell me the Etc column is the text column?

    If yes, here is a test for your reference:

    Here is list:

    vchengfenmsft_0-1665557219362.png

     

     

    Office365Outlook.SendEmailV2(ThisItem.email,"Test","ThisItem.email");
    Patch(Email,ThisItem,{etc:"Yes"})

    vchengfenmsft_2-1665557238203.png

     

    Best Regards

    Cheng Feng

     

  • Claudio65 Profile Picture
    8 on at
    Re: Change the status of a column after sending an email

    Hi before thank you for your answare, 

    I have a colomn in Sharepoint  named "Mail" , when I send an email, I need to update the related colomn "Mail" in sharepoint with "YES" 

    Grazie

  • v-chengfen-msft Profile Picture
    on at
    Re: Change the status of a column after sending an email

    Hi @Claudio65 ï¼Œ

    I'm sorry for my mistake to bother you。

    Office365Outlook.SendEmailV2(ThisItem.email,"Test","ThisItem.email");
    Patch(Email,ThisItem,{Mail:"Yes"})

    Modify etc on the formula to Mail

     

    Best Regards

    Cheng Feng

  • Claudio65 Profile Picture
    8 on at
    Re: Change the status of a column after sending an email

    Many thanks for your support,

    I think there are some problem with the syntax with commas and semicolons in english version and italian version

    This is may scenario,

    a gallery with an email icon for each item, when select the mail button navigate on "posta screen"

     

    Claudio65_0-1665589503853.png

     

    Claudio65_1-1665589710478.png

    Now I can send the mail but i can't update the "mail inviata" field with "Yes" 

    ON SELECT (INVIA MAIL BOTTON)

    Office365Outlook.SendEmailV2(TextInput2_1.Text;TextInput2.Text;RichTextEditor1.TEXT); Patch('Gestione Cellulari';thisitem;{'MailSpedita':"Yes")

    I don't know if there is something else different between english e italian ...

    Tks in adv

    Buona serata

     

     

     

     

  • v-chengfen-msft Profile Picture
    on at
    Re: Change the status of a column after sending an email

    Hi @Claudio65 ,

    Could you please tell me that [Button] is inside [DataCard]?

    If not, ThisItem will expire.

    vchengfenmsft_1-1665626569710.png

     

    Best Regards

    Cheng Feng

     

  • Claudio65 Profile Picture
    8 on at
    Re: Change the status of a column after sending an email

    Hi non it's outside I tray, to put the botton inside

  • fratrucc Profile Picture
    81 on at
    Re: Change the status of a column after sending an email

    Just try to put double ;; before the Patch function.

    The Syntax it's like this in Italian.

     

    asd1.png

    Other than that, close the } if you had copy paste the code in the comment before.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 663 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 398 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 235

Last 30 days Overall leaderboard