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 :
Microsoft Dynamics CRM (Archived)

It's possible prevent create an appointment?

(0) ShareShare
ReportReport
Posted on by 155

I'm trying to assign security roles to an appointment form but when testing with a different security role, this user can see the form, is there a way to prevent a user or role from creating certain types of activities?

Thanks!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Jeet Gandhi Profile Picture
    320 on at

    Hi,

    It's possible by writing plugin on create of the activity entity like email, appointment etc.

    In the plugin, throw custom exception that will restrict the user from creating the appointment record.

    Hope it helps.

    Thank you,

  • Suggested answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    Open that particular activity forms, hide all the fields/section/tab & keep a simple HTML webresource in a section saying - “This activity is not in use or you are not allowed to create.”

    If you want to allow few roles to create, then hide this webresource tab/section & show the other section with fields based on login user roles.

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    the most easiest way would be ,you can create a real time workflow, trigger on create and throw the error.

    survivingcrm.com/.../using-real-time-workflows-to-show-error-messages

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Agree with Alex, the easiest way is to use real time workflow to error. The other options is to have a JavaScript running on load which check for user role and then based on that  displays the error.

    Hope this helps.

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans