-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Send a ticket message action in trengo #19087
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
michelle0927
merged 18 commits into
PipedreamHQ:master
from
PrajwalLokhande2003:send-a-ticket-message-action-in-trengo
Nov 18, 2025
Merged
Changes from 15 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
19aab43
Added 6 new actions to support advanced cell formatting, data validat…
PrajwalLokhande2003 6856b44
Merge branch 'master' into add-action-in-google-sheet
PrajwalLokhande2003 fccb924
resolve PR comment
PrajwalLokhande2003 1fd1c87
Update components/google_sheets/actions/add-conditional-format-rule/a…
michelle0927 2bd89c2
Update components/google_sheets/actions/set-data-validation/set-data-…
michelle0927 9f44363
add-conditional-format-rule updates
michelle0927 4258d3f
add-protected-range updates
michelle0927 8b35e32
delete-conditional-format-rule update
michelle0927 64cbac5
merge-cells update
michelle0927 e158d5d
set-data-validation update
michelle0927 1ff970d
update-conditional-format-rule updates
michelle0927 7c93828
send a ticket message action added in trengo
PrajwalLokhande2003 e1b44e8
Revert "send a ticket message action added in trengo"
PrajwalLokhande2003 6757c5b
send a ticket message action added in trengo
PrajwalLokhande2003 b1382b6
Merge branch 'PipedreamHQ:master' into send-a-ticket-message-action-i…
PrajwalLokhande2003 946a560
updates
michelle0927 f5e2144
versions
michelle0927 4e404a4
fix key
michelle0927 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
components/trengo/actions/send-a-ticket-message/send-a-ticket-message.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| import app from "../../trengo.app.mjs"; | ||
|
|
||
| export default { | ||
| type: "action", | ||
| version: "0.0.1", | ||
| key: "send-a-ticket-message", | ||
| annotations: { | ||
| destructiveHint: false, | ||
| openWorldHint: true, | ||
| readOnlyHint: false, | ||
| }, | ||
| name: "Send A Ticket Message", | ||
| description: "Send a message to a ticket. [See the documentation](https://developers.trengo.com/reference/send-a-message)", | ||
| props: { | ||
| app, | ||
| ticketId: { | ||
| propDefinition: [ | ||
| app, | ||
| "ticketId", | ||
| ], | ||
| }, | ||
| message: { | ||
| propDefinition: [ | ||
| app, | ||
| "message", | ||
| ], | ||
| }, | ||
| internalNote: { | ||
| type: "boolean", | ||
| label: "Internal Note", | ||
| description: "If true, this message will be visible only to your team", | ||
| optional: true, | ||
| default: false, | ||
| }, | ||
| subject: { | ||
| type: "string", | ||
| label: "Subject", | ||
| description: "The subject of the message. Only used when the message is an email.", | ||
| optional: true, | ||
| }, | ||
| attachmentIds: { | ||
| propDefinition: [ | ||
| app, | ||
| "attachmentIds", | ||
| ], | ||
| optional: true, | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const resp = await this.app.sendTicketMessage({ | ||
| $, | ||
| ticketId: this.ticketId, | ||
| args: { | ||
| message: this.message, | ||
| internal_note: this.internalNote, | ||
| subject: this.subject, | ||
| attachment_ids: this.attachmentIds, | ||
| }, | ||
| }); | ||
|
|
||
| $.export("$summary", `Message sent to ticket ${this.ticketId}`); | ||
|
|
||
| return resp; | ||
| }, | ||
michelle0927 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.