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)

How do I remove default attendee from "required Attendees" in Appointments

(0) ShareShare
ReportReport
Posted on by 230

Hi guys,

When we create a case we put a primary Contact.

Then when we create an new appointment in regards to that case,  by default the primary contact from the case is put in the field "required Attendees".

How do I disable this?  if my user forgets to clear this field an email is sent to the primary contact when he saves the appointment. (I don't want this by default!)

I created a workflow "Start after record is created" and i tried clearing the field but it does not seem to make much of a difference.

I also noticed that if I create an appointment via a workflow and put nothing in that field the appointment gets created without this information...

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahadeo Matre Profile Picture
    17,021 on at

    Anthony,

    Try putting Javascript on form load of Appointment Entity.

    And on load of Appointment, if form is in CreateMode only then clear attendees field.

    So that attendee field will not be cleared when appointments which are already created and required attendees.

    Hope this will help..

  • Suggested answer
    Mamatha Swamy Profile Picture
    5,426 on at

    Adding to Mahadeo's response, javascript would be the best option to clear the RequiredAttendees field.

    In addition to checking that the Form type is Create, check that the regarding field is filled and is of type case. This will ensure that you clear the RequiredAttendee field only on Create form and when the related to case.

    Using a real-time workflow to clear the field might lead to same result but will affect the system performance. Also, not sure how the email notification is configured in your CRM. It is best to do these changes at the form level (script)

  • Suggested answer
    PS Profile Picture
    23,577 on at

    Create a workflow on appointments

    Run on create

    check condition-if regarding case (case) contains data

    update appointment>> Required attendees= owner of case

  • Suggested answer
    Community Member Profile Picture
    on at

    As has been said before, just add a few lines of JavaScript to remove the value of the required attendees field on load when a new Appointment is being created.

    Unlike before, here's some java script that should do it;

    if(Xrm.Page.ui.getFormType() == 1)

    {

    Xrm.Page.getAttribute(“requiredattendees”).setValue();

    }

    If a user wants to create an Appointment where the required members are notified of Appointment changes, they can still add contacts to the “Required” field.

  • Community Member Profile Picture
    on at

    How do I add this script to CRM? I have tried to create a jscript library and create a function for this script. Then assign it to on create event on form, but i get errors. 

  • Community Member Profile Picture
    on at

    I have the same problem here. How do I apply this code? What I've tried so far is:

    - Create a Library Prevent_Mail with this code:

    function preventmail(){

    if(Xrm.Page.ui.getFormType() == 1)
    {
    Xrm.Page.getAttribute(“requiredattendees”).setValue();
    }
    }

    Than I created an OnLoad event calling the Function preventmail but this leads to an error.

    How to fix this?

    Best,

    Hannes

  • Suggested answer
    Community Member Profile Picture
    on at

    Sorry to bring this thread back to life a year later, however this is the first result in google when searching for how to complete this task

    The above didn't work for me, until I simply changed the quotation marks to "" instead of “”

    function preventmail(){

    if(Xrm.Page.ui.getFormType() == 1)

    {

    Xrm.Page.getAttribute("requiredattendees").setValue();

    }

    }

  • Community Member Profile Picture
    on at

    Hey,

    I have to dissapoint you: This nerver worked fine for us, as you can not trust JScripts in Dynamics 365 100%. So we had cases mails going out, even with this active rule. The reason is, the rule didn't run in this cases.

    In the end we had to forbid the usage of appointments. This is not a solution, but there's no one you can trust. Poor, but true.

    Best,

    Hannes

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