-
Notifications
You must be signed in to change notification settings - Fork 273
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
Improve usability of expanded attachment tokens in the User API #4199
Comments
cturczynskyj
added
the
closed-due-to-inactivity
This is being closed due to age. If this is still an issue, comment and we can reopen.
label
Mar 1, 2021
cturczynskyj
removed
the
closed-due-to-inactivity
This is being closed due to age. If this is still an issue, comment and we can reopen.
label
Mar 1, 2021
I completely agree with the last comment. I am trying to handle attachments in javascript. We would like to generate the expanded token, which is {ATTACH:channelId:MessageId:attachmentId} and I cannot find any method in the java documentation to use it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is little information on how to use expanded attachment tokens with the User API. It is not intuitive when creating an attachment via AttachmentUtil to be manually routed to another channel.
Suggestions:
public static String expandLocalTokens(String raw, ImmutableConnectorMessage connectorMessage) { return getAttachmentHandlerProvider(connectorMessage.getChannelId()).reAttachMessage(raw, connectorMessage, false); }
It's not immediately apparent that one of the four versions of AttachmentUtil.reAttachMessage can actually expand tokens instead of reattaching the attachment. It's not in the method description, but only detailed in the parameter description. That method returns a byte[] instead of a String.Imported Issue. Original Details:
Jira Issue Key: MIRTH-4323
Reporter: agermano
Created: 2018-09-06T16:55:12.000-0700
The text was updated successfully, but these errors were encountered: