cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TheG
Level: Powered On

Button to send email and update excel row/column

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 Smiley Happy

1 REPLY 1
Community Support Team
Community Support Team

Re: Button to send email and update excel row/column

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

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 336 members 5,104 guests
Please welcome our newest community members: