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 / DataCardValue doesn't ...
Power Apps
Answered

DataCardValue doesn't work after semicolon

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

After I click the a button in my app I want it to execute a couple commands:

  • Update a SharePoint list (with info from a form that the user fills out)
  • Inform me what have been done via email
  • Inform the user what he have done via email
  • navigate to the next screen

All these things work with my code except the emails. Where the email is supposed to take info from the forms they are just blank, but when I try these codes separately they work just fine. Thanks for help in advanced!

 

Here is my code for the button: 

Office365Outlook.SendEmailV2("fredrik@arendale.com", "New Packaging design request: " & DataCardValue1.Text & ", from " & User().FullName, "Title: " & DataCardValue1.Text & "<br>" & "Project number: " & DataCardValue6.Text & "<br>"& "Created by: " & User().FullName & "<br>" & "Requested by: " & DataCardValue2.Text & "<br>" & "Problem description: " & DataCardValue3.Text);

 

SubmitForm(Form1);

 

Office365Outlook.SendEmailV2(User().Email, "Packaging design request: " & DataCardValue1.Text & "/" & DataCardValue6.Text, "Hello " & User().FullName & "," & "<br><br>" & "You have registered ...<br><br>" & "Best regards <br> Fredrik");

 

Navigate(Screen2,ScreenTransition.Fade)

Categories:
  • Verified answer
    Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    The problem is that after you Submit the form it resets the data cards in the form.  If you change the fields over to use FormName.LastSubmit.Fieldname then you should have access to the just submitted values after the form is submitted.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Ah, now it works! Thank you!

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard