Make the submit button hiddenadd another button on the form and on its click event store the data in crm and on success trigger the click event of the hidden submit button which submits to share point
Here is the article https://experienceleague.adobe.com/docs/experience-manager-learn/forms/zipping-form-attachments/introduction.html you will need to make changes to the code to rename the attachments as per your requirements
https://experienceleaguecommunities.adobe.com/t5/adobe-livecycle-questions/copy-data-from-one-table-cell-to-another-table-cell-problem/m-p/300931 was this the solution that worked for you