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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Button to send email a...
Power Apps
Unanswered

Button to send email and update excel row/column

(0) ShareShare
ReportReport
Posted on by

Hello,

i'm not able to figure out how to update row in excel sheet from my app.

 

I've got button which OnSelect will send email and as additional action i want it to update certain excel column (according to ID).

This is the OnSelect code:

 

Office365.SendEmail("someemail@live.com","LS ","IDzakazky " & PZ_CisloZak & " some text. Some text: " & PZ_SomeValue & " EUR. Some additional text"); Patch( Tab1, First( Filter( Tab1, ID_x0020_zakazky = "PZ_CisloZak" ) ), { SMS: "SENT" } )

Email part is working fine, but Patch action is not working.. 

 

Tab1 = my table in excel

ID_x0020_zakazky = ID of row

SMS:  =  column which needs to be updated

 

Thank you for help 🙂

Categories:
I have the same question (0)
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    The patch formula seems to be fine.

    The part that not working should be the filter condition:

    Patch( Tab1, First( Filter( Tab1, ID_x0020_zakazky = "PZ_CisloZak" ) ), { SMS: "SENT" } )

    To test it out,

    Please add a Label control, and enter the following under the Text property:

    First( Filter( Tab1, ID_x0020_zakazky = "PZ_CisloZak" ) ).ID_x0020_zakazky

    See if it could return the proper value of "PZ_CisloZak".

     

    Regards,

    Michael

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 337 Most Valuable Professional

#2
11manish Profile Picture

11manish 173

#3
Valantis Profile Picture

Valantis 86

Last 30 days Overall leaderboard