Recent searches
No recent searches
Can I remove added attachment in textbox programmatically?
Posted Jun 21, 2023
I need to set or reset attachment value programmatically?
For comment text we can do using this function and it's working
client.set('comment.text', value)
But for the attahcment does not work
client.set('comment.attachments', value)
Can anyone help for achieve this problem, It's very important for me
0
3
3 comments
Erica Girges
Unfortunately, attachments are unable to be set with the Client API directly. You would need to use the Ticket Attachments workflow which utilizes the Upload & Tickets API's Once you have the token from the Upload API, you can then use the request method from ZAFClient to make the call to the Tickets API and add the attachment.
0
Jigar Patel
Thanks for the replay Erica Girges
But what I want I have to remove selected attahcment when user click my app logo for sending message text is clear using
This function but attachment doesn't remove
Can we remove attachment progametaclly from the text editor? using client sdk
Please let me know if any other solution you have
0
Oana Veronica Pop
Hello!
Did you by any chance find a way to do this Jigar Patel? I also need it :D
0