I have created a lightning component and assigned it to a custom case action. How to add this action to header near standard buttons.
- I have added the action in Salesforce1 and Lightning Experience Actions section of page layout but it is shown in the feed section.
- Case Close is my action I want it in the button section.
Best Answer
There is a catch in case of cases and work orders objects when it comes to quick actions. In the article under Actions on record pages there is note that says
For other objects, you can edit page in the Lightning Experience and then select Salesforce1 and Lightning Experience Actions from the selection panel. The panel states
Once you click
override the predefined actions
link, it will give you available actions for SF1 and lightning to use. And then position your lightning-action in your desired sequence, as shown below.I worked on the Account object for this example, it should be no exception for other objects, and this is what I got
It should be noted that you can't add more than three (3) viewable lightning-actions on the page, as shown in the picture above in green squareYou can display upto 10 actions on page layout, but other action will available when you click the drop-down next to the last button on the right. There is an idea on this to let users display more Action Buttons on Lightning Highlights Panel, you can upvote that if it affects you.Edit
I have just come across this Page Layouts in Lightning Experience trailhead and it says
I just edited the highlights panel using page layout editor, strange. May be this trailhead content is old, if someone can put some light on this.