Is there an easy way to display the name of a parent case in the child case data export?
Displaying parent case name in a child case export in CommCare
commcare
Related Topic
- CommCare Auto Case Close based on Parent Properties
- CommCare – How to Automatically Close Child Case When Parent Case is Closed
- Can the CommCare Export Tool export mobile worker or location information
- CommCare – Instance Syntax to Search for All Child Cases of a Parent
- How to reference a child case in a display condition
- List the parent_name of a child case in the child case module case list
- CommCare – Saving Child Form Information to Parent Case
- CommCare – Configure Case List to Autoselect Child Case in Advanced Modules
Best Answer
I don't think there's an "easy" way to do this so it just comes through in the export. Your options would be:
Save the name of the parent case to the child case so it is a child case property. This isn't a great idea since if the name of the parent changes later it will be incorrect on the child case. You'd need to be very confident the case names won't change to use this method.
Export the parent_case_id in your export, then also export the parent cases separately. Use a vlookup to match them in Excel after the fact.