Hi @dalacarelia_196 ,
Could you please share more about your scenario? Do you mean you want to save a value into your database when you click on an icon? What is the type of the data source and the field you want to save?
If you want to save the value to a new record, you can set the following formula to the OnSelect property of icon.
Patch('Data source', Defaults('Data source'), {Field: Value})
This is a simple example for you, you need to replace the Data source, Field and Value to yours. For more reference: Patch function
If this doesn't make sense, please post back more information, that would be helpful to resolve your issue.
Best regards,
Sik