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 / Fill in datacard using...
Power Apps
Unanswered

Fill in datacard using button starting a Power automate flow

(0) ShareShare
ReportReport
Posted on by 81

Hi everyone

 

I'm trying to calculate a datacard field in a form pressing a button that starts a power automate flow.

In the flow I calculate an amount based on the user and the amount filled in in another data card field from the form.

But the field is not updating, while my flow is succeeding.

 

The app:

 

Formula for the OnSelect property for the button =

 

UpdateContext({VAR_1TotaalOnkosten: 'HR-Onkosten-kmvergoedingberekenen'.Run(var_user.Email,'DataCardValue_1.AantalKM','DataCardValue_1.AantalKM','DataCardValue_1.AantalKM')})

 

Default property for my datacard I want to calculate =

 

VAR_1TotaalOnkosten.totaal_onkosten

 

 

 

 

Categories:
  • Sarah_cool Profile Picture
    81 on at

    Sarah_cool_0-1667754908363.png

    Screenshot of the app.

    The flow returns the correct output:

    Sarah_cool_1-1667754951492.png

     

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Sarah_cool ,

     

    If the value in the textinput has been modified before, it needs to be reset before it redisplays the default value. Please reset the textinput control after you call the flow.

     

    UpdateContext({VAR_1TotaalOnkosten: 'HR-Onkosten-kmvergoedingberekenen'.Run(var_user.Email,'DataCardValue_1.AantalKM','DataCardValue_1.AantalKM','DataCardValue_1.AantalKM')});Reset(TheTextInputControl)

     

    Best Regards,
    Bof

  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    Yehp try adding a reset afterwards that sounds like it would do the trick

  • Sarah_cool Profile Picture
    81 on at

    Sarah_cool_0-1667805453067.png

    It's still not working. The text input value is empty when I fill in the form and after pressing the button it stays empty...

  • Sarah_cool Profile Picture
    81 on at
  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    Can you show me the default property for the field with a screenshot? I can also jump on a call with you if you would like so you can screenshare.

  • Sarah_cool Profile Picture
    81 on at

    Sarah_cool_0-1668274838139.png

     

  • Sarah_cool Profile Picture
    81 on at

    Someone an update on this topic please?

    I'm stuck :s

  • Sarah_cool Profile Picture
    81 on at
  • Sarah_cool Profile Picture
    81 on at

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 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard