We are in process of implementing SFDX in one of our project. We use Drawloop to generate documents and want to automate package installation and DDPs migration. Previously, We used to migrate DDPs using the migrate button which I think is not very efficient when it comes to DevOps as it is a manual task and needs a dedicated developer to do the job. We are looking for a solution where we can automatically migrate the DDPs from any sandbox to newly created scratch org. We have tried to fetch the DDP record data using workbench and then create DDP records in scratch org using SFDX commands but the DDPs created weren't correct and were missing files(templates) and all related records.
Any help would be appreciated.