【问题标题】:Assign a Record to a team in dynamics crm 2013在 Dynamics crm 2013 中为团队分配记录
【发布时间】:2014-06-18 07:20:56
【问题描述】:

将记录分配给用户很好,但是如何将记录分配给团队我无法找到团队所有权ID,您有什么想法吗?

【问题讨论】:

    标签: dynamics-crm-2011 dynamics-crm dynamics-crm-4 microsoft-dynamics dynamics-crm-2013


    【解决方案1】:

    你仍然需要使用AssignRequest,唯一的变化是EntityReference里面的LogicalNameAssignee,而不是systemuser你需要把team

    一个例子:

    Guid accountId = new Guid("90F8889F-EB95-E781-8417-000C44420CBC");
    Guid teamId = new Guid("A8AA28B4-9015-DF11-8062-000E0CA08051");
    
    AssignRequest assignRequest = new AssignRequest
            {
                Assignee = new EntityReference("team", teamId),
                Target = new EntityReference("account", accountId)
            };
    service.Execute(assignRequest);
    

    【讨论】:

    • 我如何获得teamid。我试过这段代码来获取 teamid.function getOwnerId() { debugger; if(Xrm.Page.getAttribute("teamid")!=null && Xrm.Page.getAttribute("teamid").getValue()!=null) { var owner= Xrm.Page.getAttribute("teamid").getValue ()[0].id;警报(所有者); } }
    • 你想获取当前用户的团队吗?或者您在持有团队的表格中查找?
    • 我想为团队分配一条记录。团队有一组用户。我想获取团队ID。
    • 这个团队存储在哪里?在你的形式或没有?
    • 只存储在表单中
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多