How to get data of child table using server side code. Like frappe.get_doc() ??
children = frappe.get_list(“child doctype name”,[‘name’],filters={ “parent”:“parent_name”, “parentfield” : “fileld_name”})
for child in children:
child_doc=frappe.get_doc(“child doctype name”,child.name)
getting error
res = self.session.get(self.url + "/api/resource/" + doctype + "/" + name,
TypeError: cannot concatenate 'str' and 'list' objects
and yeah was giving error on parentfield=fieldname so i changed = to :
Also you missed the parenthesis bracket opening