licensetype枚举的定义是什么?

问题描述 投票:2回答:1

我们正在为我们的端到端日志记录和监控工具Nodinite提供有关许可类型的其他信息。我们在识别LicenceType枚举的定义时遇到问题?

Microsoft文档未提供枚举的任何值:

https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/entities/systemuser#BKMK_UserLicenseType

/// <summary>
/// Type of license, such as Professional, Standard, or Suite.
/// </summary>
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("licensetype")]
public System.Nullable<System.Guid> LicenseType
{
    get
    {
        return this.GetAttributeValue<System.Nullable<System.Guid>>("licensetype");
    }
    set
    {
        this.OnPropertyChanging("LicenseType");
        this.SetAttributeValue("licensetype", value);
        this.OnPropertyChanged("LicenseType");
    }
}

这些是Dynamics 365(CRM)实例UserLicenseType中用户的唯一值:-1,3,6,7,11,20,30

dynamics-crm dynamics-crm-online saas dynamics-365 dynamics-crm-365
1个回答
2
投票

您可以使用fetchxml查询XrmToolBox - FetchXML构建器中的stringmap表。检查caltypeMS documentationuserlicensetype刚刚提到Edm.Int32

您可以从systemuser实体 - 属性下的自定义项中提取此信息。 userlicensetype只是一个完整的数字 - 当您分配许可证时,可能会从O365门户网站填写。

<fetch>
  <entity name="stringmap" >
    <attribute name="attributevalue" />
    <attribute name="attributename" />
    <attribute name="value" />
    <filter type="and" >
      <condition attribute="objecttypecode" operator="eq" value="8" />
      <filter type="and" >
        <condition attribute="attributename" operator="eq" value="caltype" />
      </filter>
    </filter>
  </entity>
</fetch>

enter image description here

来自我们CRM的有趣数据:

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.