web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Logic App gets a redirect URL response - write URL

(0) ShareShare
ReportReport
Posted on by 67

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

I have the same question (0)
  • Sukrut Parab Profile Picture
    71,710 Moderator on at

    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

  • HarryDesh Profile Picture
    67 on at

    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 :)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans