in the red highlighted part i want to add another action like upload to x database(we have an api) on click backed a activity or data transform will run and save the attachment to the database
Currently we have
Dowload,Edit,Delete and open in tab
i want another one called “Upload” it will upload the single file .
To my best knowledge, i don’t think we have a possible approach to extend and add additional actions for attachments. Because they are tightly coupled with the widget and are strictly internally managed.
If there is a strict requirement that you need to have some custom actions on your attachment, you could try to display them in a separate table and provide custom links column as shown below,
This can be a reusable field (URL) DX component where you can define multiple actions as per your requirements to call a local action with a view shown in a modal (You should find the implementation in few of the components in Pega Constellation UI Library).
See if this suits your requirement. Be very cautious before you go with DX Component approach.
This doesn’t make sense to add it because you’re at the record level where the attachment is already added and associated to the case. If this intended business requirement, then you can created a case wide flow action to display all attachments in a table and you can perform action