Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            d365Access = new D365Access("CONNECTION_STRING_HERE");

            var auditConverter = new AuditConverter(d365Access);

            //Retrieve audit histories you want to convert
            var auditHistories = GetAuditLogs();

            foreach (var auditHistory in auditHistories.Entities)
            {
                var auditModel = auditConverter.ConvertToAuditModel(auditHistory.Id);

                string modelJson = JsonConvert.SerializeObject(auditModel, Formatting.Indented);

                Console.WriteLine(modelJson);
            }
        }
Ejemplo n.º 2
0
 public AuditManagement(ID365Access d365Access)
 {
     _d365Access = d365Access;
     _service    = d365Access.GetCrmService();
 }
Ejemplo n.º 3
0
        public AuditConverter(ID365Access d365Access)
        {
            _d365Access = d365Access;

            _auditManagement = new AuditManagement(d365Access);
        }