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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 140 Super User 2026 Season 1

#2
Nagaraju_Matta Profile Picture

Nagaraju_Matta 128

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans