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 :
Customer experience | Sales, Customer Insights,...
Answered

What is RedirectUri in the connectionString of CrmServiceClient, How do I get this RedirectUri?

(0) ShareShare
ReportReport
Posted on by 455

Hi,

I want to get organization service with office365 type, that is AuthType of connecctionString is OAuth. But the connectionString must have RedirectUri field, I don't know how to get the RedirectUri. Does anyone know?

Thanks,

Dejun

I have the same question (0)
  • Stone Huang Profile Picture
    455 on at

    Or where can I find my own RedirectUri?

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Check following article - docs.microsoft.com/.../use-connection-strings-xrm-tooling-connect

  • Stone Huang Profile Picture
    455 on at

    I know this article you said, however, I want to know where I can find this RedirectUri in Azure AD. Can you tell me more about it? Thank you very much.

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    It should be  "app://" and the guid of application registration you created for OAUTH authentication so

    app://put-app-registration-guid-here

  • Stone Huang Profile Picture
    455 on at
    [quote user="Andrew Butenko"]

    It should be  "app://" and the guid of application registration you created for OAUTH authentication so

    app://put-app-registration-guid-here

    [/quote]

    Could you tell me which field in the following picture is the AppId and uri in the connection string?

    Annotation-2020_2D00_07_2D00_15-012114.png

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Sorry for misleading message. You should use Url from "Redirect URIs" that you have on the screenshot on the right side under "Supported account types".

  • Stone Huang Profile Picture
    455 on at

    Can you be more specific? I don't quite understand.

  • Stone Huang Profile Picture
    455 on at

    Do you mean that Redirect URIs should be my crm address, similar to https://XXX.crm.dynamics.com?

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    www.youtube.com/watch

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    It could be whatever url you will use to register in your app http://localhost for example.

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans