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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (91,475)