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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 78 Super User 2025 Season 1

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 72

Overall leaderboard

Product updates

Dynamics 365 release plans