Manipulation of Sub-forms Through API

Answered

Comments

4 comments

  • Official comment
    Avatar
    Tony Ruth

    Hi all, great questions and this is doable in version 6.0 of the API. The structure of the API is that you are creating records in a given form (page).

    Therefore you need to call the record API for the parent first and then use that response (record ID) to pass along to the request making the subform records.

    Just like the CSV upload approach, you just need to get all the parent information (record, page, element) in order to created parent child record sets through the API.

    Hope that helps!

    Comment actions Permalink
  • Avatar
    Bilal Tahir

    Just a quick update: It turns out it is possible to manipulate the "parent_record_id", "parent_page_id", and "parent_element_id" fields through the 5.1 API. I am still looking into this, if anyone has more information please let me know.

    0
    Comment actions Permalink
  • Avatar
    Max

    Advice here would be useful.

    Clarifying, the intent here would be to pre-populate an existing subform within the parent form via an API/Webhook thus creating new subform records.

     

    0
    Comment actions Permalink
  • Avatar
    Tony Ruth

    Hey Max and Bilal, if you already have a parent record you want to add more children to, then you need to find the PAGE ID, ELEMENT ID, and RECORD ID of the parent the child belongs to, and just include those in the request the same as all the other data you are populating.

    Hope that helps,

    Tony

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk