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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer Insights - Journeys forum

How to Feed Position Entity by using AAD?

(0) ShareShare
ReportReport
Posted on by 5

Hi All,


I need some help/advice to integrate azure active directory info with Position entity(built in).

Is it possible to grab all position(Job) related data from aad and feed those to Position? 

Regards 

I have the same question (0)
  • Verified answer
    cloflyMao Profile Picture
    25,210 on at

    Hi Jeesung,

    Could you share me more details of your business background?

    Generally, We call Dynamics 365 Web API with AAD to acess entities/records.

    It seems that you want to export data from external resource in AAD and add them into position entity in Dynamics?

    1. You could try Microsoft Flow to get retrieved data from your AAD and make a connection to Dynamics.

    This article provides a simple tutorial about whole process.

    (author took custom Connector to AAD in the article, you could also try Invoke an HTTP request from existed Flow action)

    2. The second method is you get authroized token and retrieve data in C# and register it as a plug-in in Dynamics system.

    My working code for auth:

            public static String token;
            public static String redirectUrl = "api.yourservice.com";

            public static async void queryByWebAPI()
            {

                try
                {
                    String serviceUrl = " yourservice.com";
                    String username = "";
                    String password = "";
                    string clientId = "";
                    String authUri = "https://login.microsoftonline.com/common/";
                    var cred = new UserPasswordCredential(username, password);
                    var authContext = new AuthenticationContext(authUri);
                    AuthenticationResult result = await authContext.AcquireTokenAsync(serviceUrl, clientId, cred);
                    token = result.AccessToken;
                    yourAction(token, redirectUrl);
                }
                catch (Exception ex)
                {
                    Console.WriteLine("Exception caught - " + ex.Message);
                }

            }

    3. A more OOB way is you could export position entity template and fill rows data from your AAD JSON output. (You need feed data manually)

    You could try postman to save result and convert JSON output to excel with third party tools.

    8358.png

    Regards,

    Clofly

  • Jeesung Yoo Profile Picture
    5 on at

    Thanks, This is what I was looking for :D

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Customer Insights - Journeys

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans