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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Passing dynamic value ...
Power Apps
Answered

Passing dynamic value to flow

(0) ShareShare
ReportReport
Posted on by

I'm working on a leave application, with sharepoint list as datasource.  I have a 'number' column in this list to store the amount of days applied for particular leave request. 

 

The value is stored in a variable, and I've configured the Default value of the datacard as the variable.  Hence, whenever the variable is updated (accomplished elsewhere in the form), the value 'should' be updated as well.

 

This seems to work fine in Powerapps.  I see the display text for the datacard updated dynamically.  As I understand, during form submission, the default value would be passed on.  However, when I pass submit the form, and check on the flow output (Get Sharepoint item), I do not see the value anywhere.  There is no error notification of any sort, the value just doesn't exist.

 

New to Powerapps, appreciate any feedback on this.

Categories:
I have the same question (0)
  • Verified answer
    sgtsnacks64 Profile Picture
    322 Super User 2024 Season 1 on at

    Hi misc981,

     

    Check the Datacard's Update Value:

     

    sgtsnacks64_1-1647339337300.png

     

    you may need to unlock the control to edit this value.

    This should reflect the Variable you mention in your post. It should be this value that's submitted to the form.

     

    Hope this helps?

  • HL-25070407-0 Profile Picture
    on at

    There was no 'Text' field for the 'Datacardvalue' card, hence I resorted to updating Parent.default value.  There is a text field, where numbers can be input, and if I call datacardvalue from other items, text option IS present (datacardvalue.text), but the Text field itself is missing in the item properties pane.

     

    I changed the Control type for the datacard to "View text" from "Edit number".  Only after this change does the 'Text' field become available in the item properties.  The value also correctly reflects the result of the formula I input into the "Text" field.

     

    However, when I submit the form and run the flow again...value of the datacard still isn't passed (because "view text"?)

     

    Please advise

  • HL-25070407-0 Profile Picture
    on at

    To clarify,  the calculation for number of days applied is performed at the To/From date controls, OnChange.  I don't actually need to edit the value of the field in the form, in fact I've shrunk/hidden the input box to prevent user interaction.

     

    IIRC when I try to assign the value directly to datacardvalue.text from the To/From controls (option available even though not present in item properties), I would get "incompatible data...comparison...".  I could assign to Datacard.default without issue.  Eventually, I just dumped the value directly into Datacard.default instead of assigning the value from To/From controls, OnChange.

     

    Regardless, while everything displays correctly in Powerapps, nothing gets passed to Power Automate...

  • HL-25070407-0 Profile Picture
    on at

    @sgtsnacks64 

     

    You were right, I must have misread your post previously, or confused it with one of the (many) other articles I was reading regarding this.

     

    Actually just noticed that property today, before coming back to this post.  After playing around with it, managed to pass the value to the flow, all good now.

  • sgtsnacks64 Profile Picture
    322 Super User 2024 Season 1 on at

    No problem! Glad you got it sorted 😃

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 405 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 280 Super User 2025 Season 2

#3
Kalathiya Profile Picture

Kalathiya 272

Last 30 days Overall leaderboard