Coming soon: Your brand new Help Center & Community! Get a sneak-peek here

Triggering email confirmation when posting av ticket through the REST API

Hi,

 

I'm using the REST API to create ticket and ticketmessage

  • https://community.superoffice.com/documentation/sdk/SO.NetServer.Web.Services/html/v1TicketEntity_PostTicketEntity.htm
  • https://community.superoffice.com/documentation/sdk/SO.NetServer.Web.Services/html/v1TicketMessageEntity_PostTicketMessageEntity.htm

and this works great. But I'm wondering how to trigger the confirmation email as when registering through the application. We have our own custom frontend and want to replicate the same behaviour as in Super Office.

I've tried to use these endpoints: 

  • https://community.superoffice.com/documentation/sdk/SO.NetServer.Web.Services/html/v1TicketMessageEntity_SendTicketMessage.htm - this fails because our application is not authorized?
  • https://community.superoffice.com/documentation/sdk/SO.NetServer.Web.Services/html/v1TicketEntity_NotifyNewTicket.htm - nothing happens
  • https://community.superoffice.com/documentation/sdk/SO.NetServer.Web.Services/html/v1TicketEntity_NotifyNewTicketMessage.htm - nothing happens

I would appreciate any hints/tips on this topic.

 

Sincere regards 

Truong

RE: Triggering email confirmation when posting av ticket through the REST API

Hi Truong!

When making these calls, are you using the application with an AppID that starts with 6692c1?

I'll have to look further into this, but I suspect when sending messages as you have tried to do when you get the "application is not authorized" may require access to a restricted messaging agent. 

Meanwhile, there might be an alternative means, I just don't know off the top of my head at the moment. Will investigate.

Please confirm the app id.

Best regards.

Von: Tony Yates 21. Apr 2021

RE: Triggering email confirmation when posting av ticket through the REST API

Hi Tony,
 
Thanks for the reply. I'm currently running test againts our development environment https://sod2.superoffice.com/Cust36054 with applicationId which starts with "0a2cadcc". I've tried with different values in all parameters, since the documentation states required on all. Though I've experienced that incorrect parameters might trigger unauthorized access to an endpoint.
 
I would like to know if the endpoint https://community.superoffice.com/documentation/sdk/SO.NetServer.Web.Services/html/v1TicketMessageEntity_SendTicketMessage.htm is the correct one to use. I appreciate any recommendations on alternative means.
 
Thanks again.
 
Truong
Von: Truong Le 21. Apr 2021

RE: Triggering email confirmation when posting av ticket through the REST API

Hi,

I am able to reproduce your error against the Restful Rest endpoint, and have logged this as a bug in our system.

In the meantime I am able to successfully trigger this thru the Agent REST endpoint, could you perhaps try if you are successful with that?

Von: Michel Krohn-Dale 22. Apr 2021

RE: Triggering email confirmation when posting av ticket through the REST API

Bug 12854 fixed.

 

Von: Christian Mogensen 7. Mai 2021

RE: Triggering email confirmation when posting av ticket through the REST API

Hi again,

 

Thanks alot for your help! the agent rest-endpoint works like a charm. As for the bug, I still got unauthorized. But that might be because the fix has not been deployed?

 

I'm happy with the agent solution, Please let me know if you need me to test the regular rest endpoint.

 

BR

 

Truong

Von: Truong Le 7. Mai 2021