Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,24 @@ | ||
# Dynamics 365 Console Caller | ||
Boilerplate code for testing Dynamics 365 / CRM code locally | ||
This code has been written with only intention to save developer's time while testing Dynamics 365 code which requires connection to CRM organization & **IOrganizationService** and/or **ITracingService** instances. | ||
|
||
To usse it just download this project, open in Visual Studio and build to restore nugget packages, open **Program.cs**(below code) and provide credentials to GetOrganizationService method | ||
```csharp | ||
class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
IOrganizationService orgService = Connect.GetOrganizationService( | ||
"<UserID>@<OrganizationName>.onmicrosoft.com", | ||
"<Your Crush's Name i.e. Your Password>", | ||
"<CRM login URI>"); | ||
Console.WriteLine("Connected to Organization Service!"); | ||
|
||
ITracingService tracingService = Connect.GetTracingService("AshV_Log"); | ||
|
||
// Write your code tobe tested here. | ||
} | ||
} | ||
``` | ||
|
||
* To test code snippet just write/paste your code at mentioned place and simply run/debug. | ||
|
||
* You can even add references to DLLs in this project and call public methods. |