web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Not able to impersonate the Custom Action in Dynamics CRM 2016

(0) ShareShare
ReportReport
Posted on by 5

We have CRM 2016 (8.2.10.24) on premise IFD enabled. We have a Custom Action which is getting triggered on a Button click and there in JavaScript we are impersonating the call to Action with Admin user id using the following piece of code -

action.setRequestHeader("MSCRMCallerID", <Guid of Admin>);

We are facing issue when user accesses the application with internal url, the instance of an action is invoked with normal user (logged in) and not the admin user which is being passed through Javascript. The code runs perfectly fine when CRM is accessed via external url.

By enabling the trace logs we found the following -
>FileExists ~/api/data returning False.

>DirectoryExists ~/api/data returning False

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans