CRM - Subforms - Reports

CRM - Subforms - Reports

I have a custom module linked to Accounts which holds the various charging models that my admin system uses.  Within the custom module there is a subform with anything from 1 to 6 lines on it.  If an account changes the charging model, I need to a CSV that contains:

[Account Name]      [Subform Field 1]      [Subform Field 2]      [Subform Field 3]      [Subform Field 4]

There should be multiple lines per Account Name if there are multiple lines on the subform.

Can a report like this be done from Reports?  If not, can you write to a CSV from a function?


Info
Moderation Update (13th May 2025):
Sharing the help documentation on pulling subform data into Reports in CRM.