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 :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Removing activity options form the list of New Activity

(0) ShareShare
ReportReport
Posted on by 69

Hi,

I have to limit the activity option to Appointment, Email, Phone Call, and Task only when the user clicks "New Activity" from the Activity tab. How i can remove the rest of the options. 

(The requirement is the ability to add an activity to an organization profile.)

pastedimage1637636706654v2.png

Thank you,

siva

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi SivaR,

    Unfortunately, you can't remove any options from the list through any OOB settings

    Maybe you can remove 'Activities' tab from the organization form, and add sub-grids for Appointment, Email, Phone Call, and Task separately.

    Go Settings > Customizations > Customize the system > Entities > One entity you need > Forms to open one main form you need:

    pastedimage1637646818064v1.png

    Or you can refer following link, which provides some other options:

    What to Do with Unwanted Activity Types in Dynamics CRM - Microsoft Dynamics CRM Community

  • SivaR Profile Picture
    69 on at

    Thank you for the reply. 

    our client wants to keep the ACTIVITY tab. I am not sure why Microsoft didn't give an option to uncheck the checkbox for "display in Activity Menu" (refer to the image below). That would be an easy solution. 

    From a different post, the Javascript option was not recommanded. I will try the Ribbon Workbench option and see if that works. if anyone else has a different suggestion, please share. thank you, Siva

    pastedimage1637699015058v1.png

  • SivaR Profile Picture
    69 on at

    Hi,

    I am using in Account form (Organization) to use Activity-related subgrid. If I need to hide the fax from the "New Activity" dropdown list (refer to the above image)  using Ribbon Workbench using Javascript (button Action), do i apply it on the Account entity or activityPointer? Can you provide me an example of how i can hide it using Ribbon workbench?

    i tried on the "New Activity" button on the Account entity to call a Javascript function to disable the fax option from the Activity dropdown list, not sure why it is not triggering the javascript. How i can remove the fax from the activity list?

    here are the screenshot and javascript.

    pastedimage1638213994616v1.png

    function onClickActivityTypeChange(executionObj) {

    alert("test ====");
    }

    Thank you,

    Siva

  • Community Member Profile Picture
    on at

    Hi SivaR,

    Based on your screenshot, the Subgrid ribbon bar is for Account entity, which is for the account sub-grid in other entities, not the sub-grid of other entities in the account.

  • SivaR Profile Picture
    69 on at

    Thank you for the response.

    i tried to use Javascript on the "New Activity " button to hide the fax option. I also tried to use javascript with an alert message on the "Add Existing Activity" button (refer to images 1 and 2).  When I click "Add Existing Activity" on the same page (image 2), I got an alert. However, when I click the "New Activity" button (image 2), no alert message pops up. Not sure why clicking the "New Activity" drop-down is not triggering the javascript. At least if the javascript is triggered, I can try to hide the Fax option from the dropdown list.   

    image 1

    pastedimage1638241675435v1.png

    image 2

    pastedimage1638242067746v2.png

  • Community Member Profile Picture
    on at

    Hi SivaR,

    Have you tried to use 'Add New{0}' in ribbon workbench?

    pastedimage1638249972160v1.png

  • SivaR Profile Picture
    69 on at

    i thought the button called New Activity and Add Existing Activity came from  New {0} and Add Existing {0}  buttons (refer to image 1). The 0 will be replaced with the entity name. 

    I tried to add the same javascript code to "Add New {0}" button. However, i am getting an error as "Empty 'OrGroup'. Add at least 1 Rule" (refer to the image 2). Not sure why. I want to fix it without breaking any existing functionality. 

    image 1

    pastedimage1638284173003v1.png

    image 2

    pastedimage1638284545392v2.png

  • ramarajv Profile Picture
    10 on at

    Hi SivaR did you find the solution for this problem, i am exactly facing the problem. Could please post the solution here

  • SivaR Profile Picture
    69 on at

    Please refer this link for the solution

    (+) New activity dropdown to show only relevant activities in Dynamics 365 CRM - Dynamics 365 Sales Community

  • ramarajv Profile Picture
    10 on at

    Hi SivaR , Thanks for your response. Yes we do have enabled the activity feature as mentioned in the post.

    But still we want to hide or disable one of custom activity entity  from activity drop-down in sales module .

    I tried by removing that custom activity entity from the model driven app and this activity is not started appearing in the drop-down, however it's being added by automatically and start appearing in the drop-down.

    Could you please help is there any other way to hide like using workbench ribbon tools.

    Thanks in advance

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 45 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 27 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans