One of the cool features of coding in Visual Studio is the ability to mix and match between X++ projects and C# projects in one solution. A very useful example of this feature is authenticating an Office 365 username and password directly from Dynamics 365 for Operations. To achieve this, the Unirest API package must be obtained and installed from: http://www.c-sharpcorner.com/article/authentication-with-office-365-in-C-Sharp/

Then Office 365 authentication can be achieved in a simple manner:


o365_auth_1

And here is how to call the above code from X++:

 

o365_auth_2

Knowledge article views: 1

Related Articles

No results