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

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: It's possible prevent create an appointment?

    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.

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,626 on at
    RE: It's possible prevent create an appointment?

    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
    Arun Vinoth Profile Picture
    11,615 Moderator on at
    RE: It's possible prevent create an appointment?

    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
    Jeet Gandhi Profile Picture
    320 on at
    RE: It's possible prevent create an appointment?

    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,

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

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans