cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EvaR
Frequent Visitor

Email subject gets populated with old data

Hello, 

 

I want to send a mail after the for is submitted, so the relevant people gets notified. In the subject field, I want to add a Adocs number, that is written in the form and name of statement - e.g. 123_TransportStatementRequest (see picture). 

 

The issue is this part doesn´t work as I want. The number is not the one from the submitted form but from the number from the fist form that was ever submitted. 

Does anyone knows what could be wrong and how to change it? 

 

Thanks!

EvaR_0-1648552883478.png

 

6 REPLIES 6
WarrenBelz
Super User
Super User

Hi @EvaR ,

Where are you running this from? I assume that the value you need to send is visible in the Text Box AdocsLabel at the time the email is sent?

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

EvaR
Frequent Visitor

Yes exactly. It is the label in the form:

EvaR_1-1648614734351.png

 

 

@EvaR ,

Where are you running that code from ? Also the label in your post is blank.

EvaR
Frequent Visitor

So it is blank now, but every time a form will be filled with new request, and the user will, among other things, enter this number, he will press the button "Submit form". On select, I have that formula above. I want the relevant people to get the notification when new request is submitted with this imputed number (textbox AdocsLabel)

@EvaR ,

Is the content of adocsLabel.Text a valid email address? That is why I wanted you to actually show it.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

WarrenBelz
Super User
Super User

Hi @EvaR ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (1,871)