Hello,
We are using Sharepoint to communicate with our CRM (on-prem v.8) via an API that's hosted on IIS (through AD).
Said API is connecting to CRM via a static admin user -
<add name="CRM" connectionString="Url=ourUrl.com; Domain=ourDomain; Username=Admin; Password=****; authtype=AD" />
Our issue is that whenever a user uploads a file in Sharepoint and sends it to CRM (the file is stored under Annotation entity in CRM) the Note that's created contains the Admin user instead of the actual user who created the note.
Now, I assume this is caused because of the connectionString's static Admin user, but is there any way to impersonate the sender and override the CreatedBy field in Annotation entity to display the actual user?
and if not, is there any other way of solving this issue without needing to create a custom entity?
P.S. I read there is a way to set the CreatedOnBehalfBy field via impersonation but that field is not displayed when a note is created and we'd like the username to be shown