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
Super User

@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

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

1 REPLY 1
RandyHayes
Super User
Super User

@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

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,429)