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 / Child ID is not create...
Power Apps
Answered

Child ID is not created on success property of form

(0) ShareShare
ReportReport
Posted on by 426

hi.

 

I have two sharepoints tables A being parent and B being child.

I created multiple forms against sharepoint A field and the submit button does a patch like this -> 
Patch(A, Defaults(A), RequestForm1.Updates,RequestForm2.Updates, RequestForm3.Updates, RequestForm4.Updates). This works like a charm. However on the success property it does seem to patch the MasterID which is the lookup i set on the child sharepoint.

THe idea is to related both the sharepoint with using list A's ID with B's master ID. OnSuccess property is this -> Patch(B, Defaults(B), {MasterID:RequestForm1.LastSubmit.ID, EmployeeName:DataCardValue12.Text}). My end product would be to pull out the related records using gallery later on and edit update functions.

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,415 Most Valuable Professional on at

    Hi @nchandran ,

    The problem is that OnSuccess only works with SubmitForm and you are using Patch. I suggest you use SubmitForm on the relevant item.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • nchandran Profile Picture
    426 on at

    Bret ,

    I agree what u said infact it only worked with a form submit but then I have four screens containing each form of fields all pointing to sharepoint A, when i tried submitform(form1), submitform(form2) etc , it created separate lines of records, i just need one recorded updated. Do u have a solution for this?

  • Verified answer
    WarrenBelz Profile Picture
    155,415 Most Valuable Professional on at

    @nchandran ,

    Reading your post again, you could submit the first from then OnSuccess  I assume there is only one field to write, otherwise add the others (you could actually add all fields from the three forms here)

    Patch(
     DataSource,
     {ID: Self.LastSubmit.ID},
     {
     MasterID:Self.LastSubmit.ID, 
     EmployeeName:DataCardValue12.Text //I assume this is one form 2
     }
    ); 

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Verified answer
    WarrenBelz Profile Picture
    155,415 Most Valuable Professional on at

    Hi @nchandran ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • nchandran Profile Picture
    426 on at

    Hi Waren, having some traffic issue with o365. i will come back to you the soonest.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard