A console app written in C# that shows how to communicate with the ROM TSIS2 API
- Open the project in Visual Studio and add a file to the project ROM.TSIS2.CSharpAPIDemo named Secrets.config
- Enter the app settings by using this format:
<appSettings>
<add key="Url" value="https://---.crm3.dynamics.com/" />
<add key="ClientId" value="Enter_Your_Client_ID" />
<add key="ClientSecret" value="Enter_Your_Secret" />
<add key="Authority" value="https://login.microsoftonline.com/---/oauth2/token" />
</appSettings>
- For .Net Core 3.1 add a file to the project CSharpAPIDemo-NetCore named Secrets.json use this format:
{
"MySecretValues": {
"Url": "https://---.crm3.dynamics.com/",
"ClientId": "EnterYourClientID",
"ClientSecret": "EnterYourSecret",
"Authority": "https://login.microsoftonline.com/---/oauth2/token"
}
}
- Compile and run the app