Query Records Examples

To query records using Zoho CRM GraphQL API, you should request a field with the same name under the _Records type. Here are some examples to help you get familiar with querying records.

Querying Records in Leads Module

Copiedquery {
    Records {
        Leads {
            _data {
                id {
                    value
                }
                Full_Name {
                    value
                }
                Description {
                    value
                }
            }
        }
    }
}

Querying Lookup in Products Module

Copiedquery  {
    Records {
        Products {
            _data {
                Vendor_Name {
                    Vendor_Name {
                        value
                    }
                    id {
                        value
                    }
                }
            }
        }
    }
}

Querying Subform in Leads Module

Copiedquery {
    Records {
        Leads {
            _data {
                id {
                    value
                }
                Subform_1__r {
                    _data {
                        id {
                            value
                        }
                        Parent_Id {
                            Email {
                                value
                            }
                            Company {
                                value
                            }
                        }
                        Name1 {
                            value
                        }
                        Email {
                            value
                        }
                    }
                }
            }
        }
    }
}

Querying What_Id in Calls Module

Copiedquery{
    Records {
        Calls {
            _data {
                What_Id {
                    id {
                        value
                    }
                }
                Who_Id {
                    id {
                        value
                    }
                }
                Call_Purpose {
                    value
                }
                Call_Duration_in_seconds {
                    value
                }
            }
        }
    }
}