Hello, I’ve been trying to build this function/extension based in this link
I need to add news threads/replys from the client to my ticket using this extension, but I’m not being successful while building the api:
__
headers = {"Content-Type":"application/json"};
data = {"test":"testing"};
response = invokeurl
[
type :POST
parameters:data
headers:headers
];
__
I couldn’t find what is the “installationId in the documentation, neither could understand properly what where do I put the synch_thread_object. I know thread submodule is an array of objects because of the the getRelatedRecords function.
__
{
"data":{
"threads":[
{
"extId":"SMa8974b1b935d957ffd9",
"extParentId":"+123456789",
"createdTime":"2018-09-10T11:54:03.000Z",
"content":"What surprised",
"direction":"in",
"from":"+00032882",
"to":["+00000273637"],
"canReply":true,
"extra": #SYNC_EXTRA_OBJECT,
"actor": #SYNC_ACTOR_OBJECT
}
}
}
Could someone give me an example of a deluge function which add an thread/reply to the ticket, this is the ticket Id, for example 274334000008420097.
Thanks in advance.