Dynamics 2013 How can I set the modified on value for activities that I am importing?

StackOverflow https://stackoverflow.com/questions/22355152

  •  13-06-2023
  •  | 
  •  

Вопрос

I am attempting to import a large database into Dynamics 2013, which has a lot of activities against Accounts and Contacts. When I import the Phone Calls/Emails etc. they all appear in the Activity feed labeled as today. I have Over-ridden the Created on date, but the feed is ordered by the modified on column.

If this was for on premises I'd just go into the database and run an SQL query, but since this is destined for Online that's not an option, I have tried creating a plugin but that seems to ignore/over-ride the change.

Has anyone got any inspired ways of over-riding the modified on date?

Это было полезно?

Решение

You cannot set the value of ModifiedOn in a Online organization. There is no CRM SDK call that will allow the setting of the ModifiedOn date of a record. Therefore without SQL access, as you state in your question, this value cannot be changed.

Другие советы

you can update modified on through a pre-update plugin in CRM online or on-prem. This is the only supported solution.

You may also modify SQL directly.

http://missdynamicscrm.blogspot.co.uk/2014/06/crm-2011-2013-modify-createdon-createdby-modifiedon-modifiedby-using-SDK-CSharp.html

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top