Hard-Coding Email Address into Web Service Method
I am attempting to use a Web Service Method to send an email to a third-party email address (hard-coded, it will always be the same address). I have started the method using the steps found at https://solutions.teamdynamix.com/TDClient/1965/Portal/KB/ArticleDet?ID=18979 , but instead of using the Requestor's email address, I want to use the desired recipient.
This is the code that I am using in the body of the method:
{"Comments":"This is a test comment.","IsPrivate":true,"Notify":["address@domain.com"]}
In testing, the method runs successfully, but does not send an email. Would there be a way to resolve this to get the method to send the email to the desired address?
* Alternatively, if there would be a way to include Customer type users on Notification steps, that would make satisfying the use case much simpler.
Thank you.
Answers (2)
Thank you, Mr. Sayers:
The issue has been resolved. It was a problem with my syntax.
The proper syntax is as follows:
{"Comments":"Comment",Notify:["address@domain.tld"],IsPrivate:"true"}
Hello Anderson,
Do you have a person record in your system for this email address? If so you can add them as a contact of the ticket in question then try your web service method again.
We do have a record of the contact as a "Customer". Ideally, we would want to be able to automatically send a notification to their email address for all tickets of the service using the workflow without having to manually add them as a contact for every such ticket. - Anderson Hanchett Wed 12/7/22 10:35 AM
POST: https://[COMPANY].teamdynamix.com/TDWebapi/api/[APP ID]/tickets/{{id}}/feed - Anderson Hanchett Wed 12/7/22 12:33 PM
This raises the question if - Anderson Hanchett Wed 12/7/22 1:36 PM