admin管理员组文章数量:1297105
I am connecting to Dynamics 365 in the Cloud using the .Net package: Microsoft.PowerPlatform.Dataverse.Client v1.2.3. I am behind a corporate API Gateway and as a result my base address for Dynamics is no longer
/
But rather (with the additional path):
/
I want to make use of the meta data calls to get OptionSet values (and other), so I am doing this:
//Create the client
client = new ServiceClient(
fullUri,
async (string arg) =>
{
//custom oauth call
return await oAuthService.GetTokenAsync().AccessToken;
},
true);
// Get the option set values
var res = client.Execute(new RetrieveAttributeRequest
{
EntityLogicalName = "account",
LogicalName = "someAttribute",
RetrieveAsIfPublished = true
});
When I execute this I get:
There was no endpoint listening at .svc/web?SDKClientVersion=9.2.49.14828
i.e. it removes the path (api/dynamics/) and uses just the domain, the path is required to access it through the gateway.
Is there a way to force it to use the full path? And why is it using the Organization.svc service anyway, is that no old?
版权声明:本文标题:.net - Microsoft.PowerPlatform.Dataverse.Client fails when getting metadata behind an API Gateway - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741648857a2390352.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论