Hello,
I want to create email reminder in a ticket.
I try with Flow but the preconfigured Send Email create a new ticket.
I try to use invokeUrl into a customer function but i can't push the data correctly neither in Zoho Desk nor in Flow
In Zoho Desk i get a 400 Bad Request with this code :
// Create a map that holds the values of the new contact that needs to be created
data_info = Map();
data_info.put("channel","Email");
data_info.put("to","foo@bar.com");
data_info.put("fromEmailAddress","support@zoho.com");
data_info.put("contentType","plainText");
data_info.put("content","Hello World.");
data_info.put("isForward","true");
// Format the data as specified in the Zoho Books API
data = Map();
header_data = Map();
header_data.put("Content-Type", "application/json");
response = invokeurl
[
url :urltoreply
type :POST
parameters: data
headers: header_data
detailed:true
connection:"internal2"
];
info response;
In Zoho Flow i tried "postToUrl" and i get the message in output:
Invalid JSON Format String at number line 3
with the following input :
{
"DataToBePosted": "channel:EMAIL, to:foo@bar.com, fromEmailAddress:support@zoho.com, contentType:plainText, content:test, isForward:true",
"PostURL": "https://desk.zoho.com/api/v1/tickets/xxxx/sendReply"
}