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 / Using Power Apps Form ...
Power Apps
Suggested Answer

Using Power Apps Form to send via Power Automate to an existing SharePoint List

(1) ShareShare
ReportReport
Posted on by 158
I created a form in Power Apps where a user will fill in the data.  The fields for the form come from a SharePoint list.  Then created a Power Automate Flow using When Power Apps calls a flow v2, created 10 Compose for each field on the Power Apps form, each on representing an Input type that matches the form.  Then there is a Create Item where I used the Power Apps field names to update the SharePoint list.  It ends with sending an email listing the data of those fields.
Back in Power Automate, I created a button that will run the flow but the issue I am having is that each field of the form is a DataCard.  When I try to use the FlowName.Run(DataCardValue21, there is no option for Value and it returns an error DataCardValue21 = There is an error in this formula.  Try revising the formula and run again.
 
Am I doing something wrong?
Categories:
I have the same question (0)
  • Suggested answer
    Pstork1 Profile Picture
    68,697 Most Valuable Professional on at
    Since you are using a form the value of the Data card will be something like DataCardValue21.Text, not just DataCardValue.  

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • billf24 Profile Picture
    158 on at
    Thank you for the response, but there is no option for .Text for DataCardValue21.
  • Suggested answer
    VASANTH KUMAR BALMADI Profile Picture
    266 on at

    Hi,

    **** ChatGPT Response to question ****

    It seems like you’re trying to pass the values from the DataCards (which are form fields in Power Apps) to your Power Automate flow, but you're encountering an issue because the control inside the DataCard (e.g., DataCardValue21) is not being referenced correctly.

    Understanding the Issue:

    In Power Apps, each field in a form is contained inside a DataCard, and the actual value of the field is inside a DataCardValue control. For example:

    • If you have a Text input inside a DataCard, the value of the field is typically in the Text property of the DataCardValue.

    However, when you're calling the flow in Power Apps using FlowName.Run(), you need to pass the value of the control (not the DataCard itself), which would be something like DataCardValue21.Text (for a text input) or DataCardValue21.Selected.Value (for a dropdown, for example).

    Solution:

    You need to ensure you're passing the actual value of the DataCardValue control (e.g., the text, selected value, etc.) into the flow, not the DataCard itself.

    Steps to Fix:

    1. Identify the Control in the DataCard:

      • Text Input Control: If it's a text input, you should reference DataCardValue21.Text.
      • Dropdown Control: If it's a dropdown, use DataCardValue21.Selected.Value.
      • Date Picker: If it's a date picker, use DataCardValue21.SelectedDate.
      • Checkbox: If it's a checkbox, use DataCardValue21.Value (this will return true or false).
    2. Call the Flow with Correct Parameters:

      When you are calling the flow in Power Apps, ensure you're passing the correct values, as shown below:

      FlowName.Run(
      DataCardValue21.Text, // for a text input field
      DataCardValue22.Selected.Value, // for a dropdown field
      DataCardValue23.SelectedDate, // for a date picker field
      DataCardValue24.Value // for a checkbox field
      )

      This will pass the actual values of each DataCard to your flow.

    3. Make Sure You Have the Right Number of Parameters in the Flow:

      • In your flow, ensure that the number of inputs matches the number of fields you are passing from Power Apps. Each input in your flow (e.g., Compose actions for each field) should correspond to one of the parameters you're passing from Power Apps.
    4. Test the Flow:

      • After adjusting the formula, test the form to ensure that the data is passed correctly to the flow and that the Create Item action successfully adds data to the SharePoint list.

    Example of Full Formula:

    If you have 10 fields in your form, you would call the flow like this:

    FlowName.Run(
    DataCardValue1.Text, // First field
    DataCardValue2.Text, // Second field
    DataCardValue3.Selected.Value, // Third field (dropdown)
    DataCardValue4.SelectedDate, // Fourth field (date picker)
    DataCardValue5.Value, // Fifth field (checkbox)
    DataCardValue6.Text, // And so on...
    DataCardValue7.Text,
    DataCardValue8.Text,
    DataCardValue9.Text,
    DataCardValue10.Text
    )

    Conclusion:

    The issue you're facing is because you're trying to reference the DataCard itself instead of the DataCardValue control inside it. You need to pass the value of the control (e.g., Text, SelectedValue, SelectedDate, Value) into the flow. Make sure you are correctly referencing each control's value when calling the flow.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

  • timl Profile Picture
    36,383 Super User 2025 Season 2 on at
    Hi billf24 
     
    From what I understand you're saying, the Intellisense in the designer doesn't recognise DataCardValue21.Value and DataCardValue21.Text.
     
    Can you clarify the control type of DataCardValue21?
     
    If you add a label control and set the text property to DataCardValue21.Text or DataCardValue21.Value, does Power Apps recognise that?
     
    Also what's the default mode of the Form that contains DataCardValue21? If it's in View mode, you could try toggling it to Edit mode to see if that makes any difference. 
  • billf24 Profile Picture
    158 on at
    Thank you Vasanth.  I could have sworn I tried the .Text but it was not showing up.  Now I see it.

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard