Announcements
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.
@dmclaughlin What error message are you receiving? Please post a screenshot of it.
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
@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."
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.
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.
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.
You didn't tell UPDATECONTEXT which variable you wish to update
UpdateContext({yourVariableName: DataCardValue26.Text})
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?
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"})
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 329 Most Valuable Professional
11manish 209 Super User 2026 Season 2
Mohsin Ali 179