To create a component that would perform an update and then auto close.
(Please note that this is from this installable demo here: https://github.com/SalesforceCloudServices/ltng-support-button-update )
Within this example, we load info from this record and set the value and then close the modal automatically.
- Preferrably without the end user seeing the modal, but this depends on the speed that javascript is processed on the client. Please see Octane information within this help document
After the values are set, we simply need to call two events:
For example
//-- refresh the standard detail
$A.get('e.force:refreshView').fire();
//-- close the dialog
$A.get("e.force:closeQuickAction").fire();