Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Logic app DMF Import

(0) ShareShare
ReportReport
Posted on by 65

hi

I am try to create a logic app for importing data in D365. The idea is to watch a folder, get writable blob URL from D365 and upload the file to the URL. I am stuck on getting writable BLOB URL.

2019_2D00_11_2D00_15_5F00_10_2D00_15_2D00_16.jpg

I was under the impression that there is no need to write code but I am not getting any list of parameters etc. I suppose I will need to specify the Unique ID of the recurring integration batch job that I have created in D365. 

Any idea how to pass the Unique ID? All examples I came across use C# or similar code.

Thanks in advance

  • HarryDesh Profile Picture
    HarryDesh 65 on at
    RE: Logic app DMF Import

    I tried to point the logic app to Tier II environment and now I am getting model state is invalid error. As a bonus, I am also seeing the same error logged into the AOS box event viewer. So little bit of a progress again.

  • HarryDesh Profile Picture
    HarryDesh 65 on at
    RE: Logic app DMF Import

    No luck :( I am not surprised since I am running fiddler on devbox and it did not register any incoming request. I will take a couple of hours break and try again. Please let me know if you can think of anything else.

  • Sukrut Parab Profile Picture
    Sukrut Parab 71,671 Moderator on at
    RE: Logic app DMF Import

    Add  this client ID in Azure active directory applications form in F&O and then try.

  • HarryDesh Profile Picture
    HarryDesh 65 on at
    RE: Logic app DMF Import

    hi

    I registered our dev machine on azure and that is the client id that is being shown in azure

  • Sukrut Parab Profile Picture
    Sukrut Parab 71,671 Moderator on at
    RE: Logic app DMF Import

    What is below client ID you posted in your above reply ?

    clientId": "797bb29d-xxxx-4a70-xxxx-91be76d0a401",

  • HarryDesh Profile Picture
    HarryDesh 65 on at
    RE: Logic app DMF Import

    I realized that the machine is hosting in our company subscription, so changing tenant allowed me to move further. Now getting forbidden error. I see that you have answered another thread with a suggestion to add client add in system admin - setup. Unfortunately logic apps does not seem to have a client id , so investigating further.

  • HarryDesh Profile Picture
    HarryDesh 65 on at
    RE: Logic app DMF Import

    hi Sukrut

    I used the referred webpage to add a step to fetch azurewriteUrl. but I keep on getting error

    BadRequest. Http request failed as there is an error getting AD OAuth token: 'AADSTS700016: Application with identifier '797bb29d-xxxx-4a70-xxxx-91be76d0a401' was not found in the directory 'dynamics.com'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.

    Raw data is

    {

       "uri": "xxxx-xxx-xxxxdevaos.cloudax.dynamics.com/.../Microsoft.Dynamics.DataEntities.GetAzureWriteUrl",

       "method": "POST",

       "authentication": {

           "tenant": "dynamics.com",

           "audience": "xxxx-xxx-xxxdevaos.cloudax.dynamics.com",

           "clientId": "797bb29d-xxxx-4a70-xxxx-91be76d0a401",

           "secret": "*sanitized*",

           "type": "ActiveDirectoryOAuth"

       },

       "body": {

           "DefinitionGroupId": "Kryba"

       }

    }

    Any idea what might be going wrong? I have used tenant dynamics.com as well as Microsoft.com

  • HarryDesh Profile Picture
    HarryDesh 65 on at
    RE: Logic app DMF Import

    Thanks a lot :)

  • Verified answer
    Sukrut Parab Profile Picture
    Sukrut Parab 71,671 Moderator on at
    RE: Logic app DMF Import

    Hi Harry  ,

    Check below link ,

    medium.com/.../logic-app-integration-with-d365-f-o-524ac4909f0

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,791 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,488 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans