Skip to main content

Notifications

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

Logic App gets a redirect URL response - write URL

Posted on by 65

1) My HTTP post has the following parameters

 

Method: POST
URI: xxxx75ae7422devaos.cloudax.dynamics.com/Microsoft.Dynamics.DataEntities.GetAzureWriteUrl
Body: {"uniqueFileName": "Kryba"} //tried DefinitionGroupId as well.
Authentication: Active Directory OAuth
Tenant: xxxx.com
Audience: xxxx75ae7422devaos.cloudax.dynamics.com/
Client Id: xxxxx29d-xxxx-xxxx-8a4b-91be76d0a401
Credentials type: Secret
Secret: xxxxxo6FWPxxx=5K=xxxx-?J-xxxx/p@ 

2) When I look at the output I notice that, I have received a redirect URL response which is basically pointing me to 


3) So I add another step to call this redirect URL. Output of the step is (status code 200)
{
"statusCode": 200,
"headers": {
"Vary": "Accept-Encoding",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
"x-ms-request-id": "7a17a628-066b-4954-adb2-1b896c1f2f00",
"x-ms-ests-server": "2.1.9677.8 - EST ProdSlices",
"Cache-Control": "private",
"Set-Cookie": "x-ms-gateway-slice=prod; path=/; SameSite=None; secure; HttpOnly,stsservicecookie=ests; path=/; SameSite=None; secure; HttpOnly",
"Date": "Wed, 20 Nov 2019 21:51:10 GMT",
"Content-Type": "text/html",
"Content-Length": "649"
},
"body": "<html><head><title>Continue</title></head><body><form method=\"POST\" name=\"hiddenform\" action=\"">login.microsoftonline.com/.../wsfed is disabled. Click Submit to continue</p><input type=\"submit\" value=\"Submit\" /></noscript></form><script language=\"javascript\">window.setTimeout('document.forms[0].submit()', 0);</script></body></html>"
  
Any idea where do I go from here to get that writable URL?
thanks in advance

  • HarryDesh Profile Picture
    HarryDesh 65 on at
    RE: Logic App gets a redirect URL response - write URL

    ahhhhhh! I had changed it while trying multiple things and now back to Not authorized, invalid operations error.

    The funny thing is that security credentials work for ImportFromPackage api call. I did not want the headache of importing a package but I guess there is no other option.

    Can you please let me know from your experience if the following plan will work

    1) create manifest.xml and packageHeader.xml and store in in Azure blob.

    2) once we receive file from external application -> create a zip file from external application, manifesh.xml and packageheader.xml

    3) Import zip file using ImportFrompackage api call.

    Thanks in advance :)

  • Sukrut Parab Profile Picture
    Sukrut Parab 71,647 Moderator on at
    RE: Logic App gets a redirect URL response - write URL

    Isn't your post action is going to be like below ? Did you try it ?

    xxxx75ae7422devaos.cloudax.dynamics.com/data/DataManagementDefinitionGroups/Microsoft.Dynamics.DataEntities.GetAzureWriteUrl

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans