cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
FortySixty
Regular Visitor

stuck in Getting your data after submitting the form

Hi ,

 

I have a screen with form connected to SP list.

the property as below;

OnSuccess:

 

Patch(
    'Sample Receive',
    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: ""
        }
    }
); Notify("Data saved successfully", NotificationType.Success)

 

 

DefaultMode: FormMode.New

Visible: true

 

and also I have a button with OnSelect Property: SubmitForm(Form1)

 

I know the solution to avoid "Getting your data" is to put NewForm(Form1) in the button, but it will not collect the "inputter" to SPlist, there is any solution to fixing this?

 

Thank you.

 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@FortySixty 

Is the datasource of your form 'Sample Receive' ??  If so, then I would advise getting rid of the Patch in the OnSuccess and simply put this action directly in your form.  If it is a separate list than the form data source, then it is fine (except you can get rid of the odata.type part now...it is no longer needed)

 

Now, the next question is...what do you want to appear when the user submits the form?  A new form or the record that was just submitted?

If you want a New form, then add NewForm(Form1) in your OnSuccess action.

If you want the current record and to now be in Edit mode, then you need to look at how you are setting the item property of form.  That is what would need to be changed in order to see the current record.

 

I hope this is helpful for you.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

1 REPLY 1
RandyHayes
Super User III
Super User III

@FortySixty 

Is the datasource of your form 'Sample Receive' ??  If so, then I would advise getting rid of the Patch in the OnSuccess and simply put this action directly in your form.  If it is a separate list than the form data source, then it is fine (except you can get rid of the odata.type part now...it is no longer needed)

 

Now, the next question is...what do you want to appear when the user submits the form?  A new form or the record that was just submitted?

If you want a New form, then add NewForm(Form1) in your OnSuccess action.

If you want the current record and to now be in Edit mode, then you need to look at how you are setting the item property of form.  That is what would need to be changed in order to see the current record.

 

I hope this is helpful for you.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,371)