如何更新activitypointer中的数据
How to update data in activitypointer
如何以编程方式更新 activepointerbase 中的主题?
我收到一条消息,指出 Create/Update 方法在 Activity Pointer CRM 2011
中不允许使用
我正在获取一个活动指针记录,并尝试更新它:
var activityPointer = xrmServiceContext.ActivityPointerSet.FirstOrDefault(x => x.Id == myGuid);
然后我尝试更新它:
activityPointer.EntityState = EntityState.Changed;
organizationService.Update(activityPointer);
我得到一个异常:Activity 指针中不允许更新方法
在 ActivityPointerBase table 中有一个名为 Subject 的字段。
问题:
如何以编程方式更新 activepointerbase 中的主题?
你不能。 Activity 指针是一种特殊类型的实体,它将 activity 实体(任务、电子邮件、传真、信件、phone 电话等)的共同元素结合在一起。
一个activity指针实际上是一个完整的activity特定类型。
ActivityPointer (activity) entity
The activity pointer (activity) entity represents any activity or task
that is performed, or to be performed by a user. An activity is any
action for which an entry can be made on a calendar.
Whenever you create an activity record in Microsoft Dynamics 365, a
corresponding activity pointer record is created. This indicates that
the activity record and the corresponding activity pointer record have
the same value for the ActivityId attribute. For example, if you
create an Email record, the attribute values of Email.ActivityId and
the corresponding ActivityPointer.ActivityId will be the same.
要更新 activity 指针中的字段,请更新 activity 指针相关的 activity。例如任务:
Entity e = new Entity("task");
e.Id = "Your Id Goes Here";
e["subject"] = "Your new subject";
Service.Update(e);
如何以编程方式更新 activepointerbase 中的主题?
我收到一条消息,指出 Create/Update 方法在 Activity Pointer CRM 2011
中不允许使用我正在获取一个活动指针记录,并尝试更新它:
var activityPointer = xrmServiceContext.ActivityPointerSet.FirstOrDefault(x => x.Id == myGuid);
然后我尝试更新它:
activityPointer.EntityState = EntityState.Changed;
organizationService.Update(activityPointer);
我得到一个异常:Activity 指针中不允许更新方法
在 ActivityPointerBase table 中有一个名为 Subject 的字段。
问题: 如何以编程方式更新 activepointerbase 中的主题?
你不能。 Activity 指针是一种特殊类型的实体,它将 activity 实体(任务、电子邮件、传真、信件、phone 电话等)的共同元素结合在一起。
一个activity指针实际上是一个完整的activity特定类型。
ActivityPointer (activity) entity
The activity pointer (activity) entity represents any activity or task that is performed, or to be performed by a user. An activity is any action for which an entry can be made on a calendar.
Whenever you create an activity record in Microsoft Dynamics 365, a corresponding activity pointer record is created. This indicates that the activity record and the corresponding activity pointer record have the same value for the ActivityId attribute. For example, if you create an Email record, the attribute values of Email.ActivityId and the corresponding ActivityPointer.ActivityId will be the same.
要更新 activity 指针中的字段,请更新 activity 指针相关的 activity。例如任务:
Entity e = new Entity("task");
e.Id = "Your Id Goes Here";
e["subject"] = "Your new subject";
Service.Update(e);