# Add custom actions to job diary attachments

**URL:** <https://community.servicem8.com/t/add-custom-actions-to-job-diary-attachments/1254>\
**Category:** API & SDK\
**Created:** [November 11, 2026, 4:56am UTC](https://community.servicem8.com/t/add-custom-actions-to-job-diary-attachments/1254 "2026-11-11T04:56:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hayden\_brokenshire](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@hayden\_brokenshire](https://community.servicem8.com/u/hayden_brokenshire)\
**Post date:** [November 11, 2026, 4:56am UTC](https://community.servicem8.com/t/add-custom-actions-to-job-diary-attachments/1254/1 "2026-11-11T04:56:37Z")

</div>

Is it possible to add a custom action to the dropdown beside an attachment in the job diary, alongside “Remove”?

I’m building a customer portal and would like to add “Show in Client Portal” so staff can make a file visible to the customer directly from the diary, without opening a separate add-on and selecting the file again.

Is there a way to do this through the Add-on SDK, or is there any other possible approach?

If it’s not currently available, it would be a useful addition for our use case, and I’m sure plenty of other integrations would benefit from being able to run actions directly on diary attachments.

---

<div class="post-metadata">

**Author:** ![Cody](https://sea2.discourse-cdn.com/flex002/user_avatar/community.servicem8.com/cody/32/52_2.png) [@Cody](https://community.servicem8.com/u/Cody)\
**Post date:** [November 14, 2026, 4:57am UTC](https://community.servicem8.com/t/add-custom-actions-to-job-diary-attachments/1254/2 "2026-11-14T04:57:13Z")

</div>

Hi Hayden,  
The Add-on SDK doesn’t currently support adding custom actions to an attachment’s dropdown in the Job Diary, so you can’t place “Show in Client Portal” alongside “Remove”. The supported UI extension points are Job Actions, Client Actions and Menu Items.  
The closest supported approach is a Job Action that opens a file-sharing picker for the current job:

1. Add a job-level action such as “Manage Portal Files”. On the web, it can open as a modal inside ServiceM8 rather than sending staff to a separate portal page.
2. Use `eventArgs.jobUUID` from the action event to retrieve that job’s attachments through `GET /api_1.0/attachment.json`, filtering on `related_object eq 'job' and related_object_uuid eq '<job-uuid>' and active eq 1`. This endpoint requires the OAuth scope `read_attachments`.
3. In your picker, let staff choose which files to share, and store that selection in your portal against each attachment’s `uuid`. This is a suggested design for your integration.  
That still requires staff to select the file within your add-on, rather than acting directly on the diary attachment, but it keeps the workflow tied to the job they’re already viewing.  
The relevant references are the [Manifest Reference](https://developer.servicem8.com/docs/manifest-reference) and [List all Attachments](https://developer.servicem8.com/reference/listattachments).  
Thanks,  
Cody
