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 / patch data from PowerA...
Power Apps
Answered

patch data from PowerApps to SharePoint List

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am editing SharePoint Customize form in PowerApps. In my SharePoint list, I have one combo box column named status. In my customized form, I had added one button to submit form and create a new row in SharePoint list.

 

I was required to update the status column (combo box) in the new row as "Submitted" after click on the submit button. However, my power fx query is not working at all. Anyone can help on it? Thank you

 

My power fx for the submit button:

Set(varStatus,LookUp(Choices([@'Create New Request'].Request_x0020_Status),Value="Submitted"));

SubmitForm(SharePointForm1);
If(SubmitForm(SharePointForm1),Notify("Your request has been submitted for review!",NotificationType.Success));
IfError(SubmitForm(SharePointForm1),Notify("Your request has been failed to submit!",NotificationType.Error));
Set(varStatus,Blank());

 

This is my column in SharePoint List

LifeIsFantastic_0-1663232853951.png

 

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi,

    You can add the Status DataCard in your form and if you want to hide it, you can set the visible property to false.

    In default property of your DataCardValueStatus you can write - If(FormName.Mode=FormMode.New, {Value: "Submitted"}, Parent.Default)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, my form has "submit" and "save as draft" button. if "save as draft" button get clicked, the status column should have the value of "Save as draft". So, if I put in default property in datacard, no matter which button i clicked, it will always updated as submitted in my list. right? However, I already hide the status data card in my form

  • MVP-Phipps Profile Picture
    3,521 Super User 2024 Season 1 on at

    Yes it does not matter if the card is hidden.

  • Verified answer
    NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hiding data card will not have any impact. You can revise the formula on DefaultSelectedItems property of your Status data card

    If(Form9.Mode=FormMode.New, If(varButton="draft",{Value: "Save as draft"}, {Value: "Submitted"}),Parent.Default)

    On Save as draft button, use a variable and set it's value to = Set(varButton,"draft")

    On Submit button set the variable value to  Set(varButton,"main")

    I think this should work

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

    It is working now. Thank you @NandiniBhagya20 

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 385

#2
Vish WR Profile Picture

Vish WR 367

#3
timl Profile Picture

timl 340 Super User 2026 Season 1

Last 30 days Overall leaderboard