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 / power app form button ...
Power Apps
Unanswered

power app form button - send email, udpate datacard on form that feeds sharepoint list

(0) ShareShare
ReportReport
Posted on by 349

When in edit mode I want a button to do several things, send an email which I know how to do , then set a datacardvalue on the form = "Processed".  The third step is to set a different datacardvalue, a sharepoint list text field also to be the user + processed + date/time.  I haven't even researched that part yet since I have not got the status = processed to work.  I attached my statement in the button on select.

 

 

test.JPG
Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @dmclaughlin 
    What error message are you receiving?  Please post a screenshot of it.

  • dmclaughlin Profile Picture
    349 on at

    Well the error changes based on my next guess at what it wants.  I'm just not sure what syntax is required to accomplish in a button but an email and setting of status = processed

    error.JPG
  • mdevaney Profile Picture
    29,991 Moderator on at

    @dmclaughlin 

    That screenshot was helpful!  Tells me exactly what I needed to know.

     

    Status_DataCard1 must include what property you want to get from it. 

     

    Example: for a text input

    Status_DataCard1.Text

     

    Example: for a dropdown (not a ComboBox)

    Status_DataCard1.Selected.Value

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • dmclaughlin Profile Picture
    349 on at

    So I'm still missing something.  I've tried it several ways.. using : using =.. used status_datacard1.text and datacardvalue26.text.  It is a text field.  

    error.JPG
  • mdevaney Profile Picture
    29,991 Moderator on at

    @dmclaughlin 

    You need to refer to DataCardValue26.Text.  Make sure your capital and lowercase letters exactly match mine.  If it doesn't work send me another screenshot.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • dmclaughlin Profile Picture
    349 on at

    So I'm actually selecting it as I type in the formula bar.  When I type and select the datacardvalue26 and then I type .  the text comes up so I select that and then = and when I type "Processed" that is the error.  It seems to want me to set it = to another field which is not what I'm trying to do. 

    error.JPG
  • mdevaney Profile Picture
    29,991 Moderator on at

    @dmclaughlin 

    You didn't tell UPDATECONTEXT which variable you wish to update

    UpdateContext({yourVariableName: DataCardValue26.Text})

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

     

  • dmclaughlin Profile Picture
    349 on at

    So what I'm trying to do is update my sharepoint list field status which is in datacardvalue26 = 'processed'.  So am I missing something?  I'm not setting a variable  at this time I'm setting a datacardvalue.  So am I missing steps?  

  • mdevaney Profile Picture
    29,991 Moderator on at

    @dmclaughlin 

    UpdateContext changes a variable.  It does not update SharePoint.  So maybe that's the issue here?


    Patch would be the function needed to update SharePoint

    Patch(your_datasource_name, ID=ThisItem.ID, {SharePointColumnName: "Processed"})



    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • dmclaughlin Profile Picture
    349 on at

    Could be.. what is a function I can put in a button to update the datacardvalue that feeds back to a sharepoint field. I found that updatecontext in a post someone had so that is why I was trying 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 400 Most Valuable Professional

#2
11manish Profile Picture

11manish 141 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard