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 / Combined Patch and Sub...
Power Apps
Answered

Combined Patch and SubmitForm function

(0) ShareShare
ReportReport
Posted on by 18

Hi, I want create button that submit the form and also collect the name that filled the form automatically.

I try combine the patch and submitForm function as below;

 

Patch(
 'Sample System',
 Form1.LastSubmit;
 {
 Inputter: {
 '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
 Claims: "i:0#.f|membership|" & User().Email,
 Department: "",
 DisplayName: User().FullName,
 Email: User().Email,
 JobTitle: "",
 Picture: ""
 }
 },
 Form1.Updates
)

 

But it's only collect the form function, the "inputter" column still blank in sharepoint list.

What can I do to make this work?

 

Thank you

Categories:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @FortySixty 

    Where did you put that formula? It should be in the OnSuccess property of the form.

  • FortySixty Profile Picture
    18 on at

    in the button, since the button as the trigger to collect the form

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @FortySixty 

    The button should have only SubmitForm(Form1), anything else belongs in the OnSuccess property of the form. It should only execute if the form successfully submits.

  • FortySixty Profile Picture
    18 on at

    @DrrickrypI've tried it, but data entry will be separately in the SP list.
    I need a button that will make one data entry, but I want the "inputter" field to be filled in automatically.

  • FortySixty Profile Picture
    18 on at

    @Drrickryp  it's work now,

    Form1.LastSubmit;

    change to 

    Form1.LastSubmit,

     

    thank you

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard