Question: query all stage history changes of all opportunities
kienphong opened this issue · comments
Hi,
is there a way to query all the stage change history change of all the opportunities?
i tried:
retrieveMultipleRequest({
collection: 'audits',
filter: `(objecttypecode eq 'opportunity')`,
})
but it only returns:
{
_objectid_value: 'ABC',
_userid_value: '123',
operation: 2,
createdon: 2021-05-17T17:21:26.000Z,
auditid: 'XYX',
attributemask: '10060',
action: 2,
objecttypecode: 'opportunity',
_regardingobjectid_value: null,
useradditionalinfo: null,
_callinguserid_value: null,
transactionid: null
},
i don't see the old values or new values of the history log.
Thansk.
Hi @kienphong DynamicsWebApi can do anything what Dynamics 365 Web Api can do. So if Web Api can retrieve audit records, DynamicsWebApi can do that too. I would recommend researching on how to properly get history and audit data in Dynamics 365 using Web Api and I can help you to write those requests using DynamicsWebApi.
Sorry, I did not have a chance to work with audit log, so I don't know the answer.
Closing this issue due to inactivity.