Skip to content

Paginated child doctypes

Paginated Child Tables

For listing Email Group linked to a Newsletter castlecraft you can query it as belows

API

https://<YOUR_FRAPPE_SITE>/api/method/frappe_utils.common.crud.get_paginated_list?
    doctype=Newsletter Email Group
    fields=["*"]
    filters=[
        [
            "parent","=","castlecraft"
        ]
    ]
    limit_start=0
    limit_page_length=5

CURL

curl 'https://<YOUR_FRAPPE_SITE>/api/method/frappe_utils.common.crud.get_paginated_list?doctype=Newsletter%20Email%20Group&fields=%5B%22*%22%5D&filters=%5B%5B%22parent%22%2C%22%3D%22%2C%22castlecraft%22%5D%5D&limit_start=0&limit_page_length=1'

All filters used in frappe listing API can be used here.