Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Creating buttons to add activities to parent or child records?

(0) ShareShare
ReportReport
Posted on by 3,079

I'm trying to create a button to add an activity either to the parent record, or any of its child records (for a specific relationship).  For example, we're using a parent/child relationship for contacts, so that's the one I'm thinking about.  In my mind, it looks like this - each activity type that we use would have a button...email, phone, and appointment, for example.  So three buttons.  Button one would say "Add Email", and when you clicked on it, it would drop down/flyout/whatever to a list of the parent contact record and each child contact record.  You would click on whichever one of those you wanted, and then it would open that activity form with that contact in the To: field.

In terms of the command itself, obviously there are system commands for adding activities to the primary record.  Are there also system commands for adding them to secondary records (that presumably has a parameter for which one)?  I can't actually find a list of system commands anywhere, which would really help.  If not, I can certainly create custom javascript for it...that part I can figure out.  But the other thing I haven't been able to figure out is how to dynamically create buttons - i.e. populate that drop down list of buttons with each child record.  Last resort I can make a fully custom websource, and I guess add it somewhere other than the ribbon?  But that's way less than ideal.

*This post is locked for comments

  • awalters Profile Picture
    3,079 on at
    RE: Creating buttons to add activities to parent or child records?

    Hmmm....found this:

    community.dynamics.com/.../add-dynamic-menu-to-ribbon-button

    Which looks like it'll get me at least part of the way there.  It's Friday afternoon at the end of a very long week, though, so not sure how far through this I'll get today, but will report back.

    However, I still haven't actually found a list of system commands anywhere, so that'd still be generally helpful if anyone has a link to one.  Thanks!

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
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans