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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to Enable "personal option" through C# code

(0) ShareShare
ReportReport
Posted on by 185

Hi Friends,

Please help on the below.

I need to enable Personal option "Allow Microsoft Dynamics crm to send email"  through C# code.

Please share the code if any one.

*This post is locked for comments

I have the same question (0)
  • ashlega Profile Picture
    34,477 on at

    I think you just need to set

    issendasallowed

    to true.

    But you'll need to get UserSettings record for the user, and, unless you are doing it under that user's account, you'll need to impersonate such calls (since even admins won't have access to the user settings of other users I believe)

    There is an example of how you can retrieve a user settings record here:

    missdynamicscrm.blogspot.ca/.../get-current-user-setting-timezone-crm-c.html

    So you just need to update it after that:

    userSettings["issendasallowed"] = 1;

    service.Update(userSettings);

    For the impersonation, you just need to pass userid when creating a service in the plugin:

    IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);

    msdn.microsoft.com/.../gg594416.aspx

    Although, if you are doing it in the plugin that's running under the calling user account, you don't need to bother about impersonation

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans