Create a custom data entity in ax2012

Hi, I’ve a requirement where i want to create a composite data entity in ax2012 of customer invoices journal and customer invoice trans. and then by processing group i need to export the records to the local folder path.

Can anyone suggest how can i achieve this ? Kindly suggest.