Open jordimontana82 opened 8 months ago
@jordimontana82 was it a deliberate decision to only include OrganizationDataService in this implementation? As OrganisationService and WebApplication are also valid Enums
if (orgDetail == null)
{
orgDetail = new OrganizationDetail()
{
Endpoints =
{
{ EndpointType.OrganizationDataService, "http://baseUrl/XrmServices/2011/OrganizationDataService.svc" }
}
};
}
[DataContract(Name = "EndpointType", Namespace = "http://schemas.microsoft.com/xrm/2014/Contracts")]
public enum EndpointType
{
[EnumMember]
OrganizationService,
[EnumMember]
OrganizationDataService,
[EnumMember]
WebApplication
}
Hi @ozdemir-mehmet ,
Good point, yes, this message was introduced mostly as it was needed for another piece of work. Do you need to use the other endpoints?
Yep using WebApplication, I think if all three are added just following the same pattern it should be enough. Even better being able initialise them as part of the test setup?
I've done something like this in the meantime as my unit tests were failing :)
`
try
{
var uriString = response.Detail.Endpoints[EndpointType.WebApplication];
return new Uri(uriString);
}
catch { return null; }
`
Add implementation for the above organisation request, that allows to retrieve information about the organisation you're currently connected to.
https://learn.microsoft.com/en-us/dotnet/api/microsoft.crm.sdk.messages.retrievecurrentorganizationrequest?view=dataverse-sdk-latest