How to use the Write to Data Store smart service to update an entity-backed record in response to a SAIL user interaction
Test it Out
Click on the link Transfer Employee. Notice that department and title have now been turned into editable fields.
Change the value of New Department and New Title and click Transfer. Notice the entered values remain.
Click on the link Transfer Employee. Change the value of New Department and New Title and click Go Back. Notice the previous values are shown.
Notable implementation details
The ability to persist data directly to the database from the summary view should be considered when the desired outcome it to simply spot update data. If other things need to happen as a result of the change, it's best to move this to a related action to allow a process to manage the update.
This recipe provides only the interface example and assumes that this dashboard would go in an employee entity-backed record. However, this expression could be used in any user interface that makes sense.
If an error occurs updating the status, you can see the specific error encountered while testing in the Interface Designer, but the end user will see the configured error message in the dropdown field's validation message. When saving multiple fields at once, consider using a section validation error or a rich text field with an error icon to display the message.