跳到主要内容

How-to: Add a button to Deskpro to open the notes app

在 Apps 中
作者列表
已发布: 2022年2月1日|最后更新: 2023年1月3日

This how-to guide follows on from connect to an API to store notes. We advise you to read this guide before continuing.

Now we have our notes app working, it's be great to open it from the "Ticket Additions/Actions" menu in Deskpro. We can do this with target actions.

Adding a Target ActionCopy link to Adding a Target Action to clipboard

To add a target action, we must modify the target in our app manifest. Open manifest.json and make the following changes to the target and version:

{ // ... "version": "1.0.2", // ... "targets": [{ "target": "ticket_sidebar", "entrypoint": "index.html", "options": { "actions": { "linkTicket": { "type": "ticket_addition", "title": "Add Notes", "description": "Add general notes" } } } }], // ... }
copy

Next, we'll need to build and package our app again.

pnpm build:package
copy

Once you have created the updated app package zip file, found in ./build, upload it via Deskpro apps admin as we did earlier.

Refresh Deskpro and you shown now see our new target action button appear in the ticket actions menu.

Screenshot from 2022-02-01 15-13-34.png

Clicking on this new target action button will open out app.

有帮助没有帮助
下一个页面Connect the Outlook Add-in to Deskpro
上一个页面How-to: Connect to an API to store notes

请登录或注册以提交评论。