enter image description here

As shown in figure I want to add button (right side by send by mail) on each CommandBar in SharePoint site?

  • Are you trying to add this command on all modern SharePoint pages or somewhere else?? Jan 3, 2020 at 12:08
  • All modern sharepoint pages..
    – Mavani
    Jan 3, 2020 at 13:16

2 Answers 2


You can insert some code into React script editor web part to append the custom button.

<script src="https://code.jquery.com/jquery-1.12.4.min.js" type="text/javascript"></script>
<script type="text/javascript">
        $(document).ready(function () {
        var commandset= $("button[name='Send by email'][role='menuitem']").parent().parent();
        commandset.append( "<p>Test</p>" );

enter image description here


You should use a SharePoint Framework Extension to do this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.