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)

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

I have the same question (0)
  • awalters Profile Picture
    3,079 on at

    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

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