Have you gotten a requirement to override a system ribbon or command button? If yes then this article will help you to implement your requirement.
Requirement: Let's say we have a requirement to prompt the user before saving the record and we need to save or cancel the save operation.
Solution: We can create a custom button to replicate the out-of-the-box button, we will be calling the same method that is called from the out-of-the-box button. Once our button is ready we will hide the out-of-the-box button. To implement our requirement use the following procedure.
Note: You can follow our previous article to get the RibbonWorkBench solution, to create the demo solution and add existing entities. We will override the Save button on the account entity.
Now we will create a custom button and will copy the properties or save button. Using the following procedure:
Now we need to check the command associated with the system save button and need to see which function and parameter is used for that. Use the following procedure.