Dear Community,
My question relates to a preliminary phase of a project. I am looking for recommendations on the overall architecture. Goal is explained below, and I added my initial thoughts based on my research:
Project description:
A form (PDF file) gathers projects' specific specification data. This data is currently entered manually in BC by internal team. My goal is to automate the data extraction, sending to BC and perform actions (create entities, etc.) based on the data. Once I have the data in BC, it is pretty clear for me (JSON data conversion into actions with AL code or Power Automate).
Initial thoughts:
Was considering adding a button in the PDF form and Javascript the extraction/ParseJSON and send to a WebService on BC. But not sure about all steps' stakes (i.e. JS code, authentification for sending data.
Own investigation:
1- data form container -> currently it is PDF. Extraction from a button/JS seems very inconsistent (many methods ended not working during my tests). Could potentially move to other solution (offline mode of a page on Dynamics 365 Sales App, excel, etc.). The solution on the CRM would simplify the authentification process.
2- data extraction -> any recommendations if I am keeping the PDF ?
3- export to BC -> thinking about using a WebService (if submited from outside). The OAuth method is a layer that I am wondering where to apply. If the form is already somewhere in the Tenant, integration is easier, but it is extra dev for me.
4- treatment on BC -> AL codeunit triggered by the Webservice or Power Automate
I am curious about your thoughts on that. Thank you. Peace