Tuesday, August 20, 2024

Package Api Import through logicapp

 Scenario :-Import from package 

I got a requirement where I will get datapacakages added in blob so I need to import data in d365fo 

Step1:-Create a data project in d365fo using Datamangement

Note:-Add a sample file for the project.



Step2:-Create a Workflow in logicapp in AZURE. So my trigger point will be blob modify as my datapacakages will be added in blob storage


Step3:-Take next action as Blob and take function as create sas URL by path 


Step4:-Now take http and use method as post and URL will be

D365fourl/data/DataManagementDefinitionGroups/Microsoft.Dynamics.DataEntities.

ImportFromPackage




Step5:-To check the status of package imported successfully parse the previous output 

Step6:-Now use http to get status from d365fo

Note:-Use delay because instantly we cant check We need to give some time to import in D365fo




Step7:-One can see logic app run history once we get a data package added in blob



Step8:-Save Logicapp and wait for file to be added in blob once we get datapacakages added in blob

you can see record inserted in d365fo.If we have records already it will get updated.


      keep Daxing!

 
























No comments:

Post a Comment

Upload File from local system in a form

 Actions to be done at 3 stages  1) Create Fileupload item by right clicking on design as shown in image below 2)Change Properties especiall...