We're excited to share with you a new update for SMILEconnect, inspired directly by your valuable feedback. Many of you have requested more flexibility in mapping outgoing webhooks, and we have listened!

New Flexibility in Outgoing Webhooks

Previously, the options for outgoing webhooks in SMILEconnect were limited to sending ticket IDs, which was sufficient for simple use cases. However, for more complex integration requirements, custom scripting was necessary. With our latest update, you can now customize the entire content of an outgoing request directly in the SMILEconnect interface.

const retrunValue = await adapter.smileconnect.getTicket('incidents', 'INC000000004601');
customData.incident = retrunValue.data;

customPayload.body = `{
   "vendorTicketId" :"",
   "lastUser": "",
   "shortText": "
`;

//Optional Change of Content Type - defaults to application/json
customPayload.contentType = "text/plain";

//Optional Change of method. Defaults to POST
customPayload.method = 'PUT';

//Optional Change of headers
customHeaders['X-API-GATEWAYUSER'] = 'gatewayuser1'

Dynamic Loading of Request Templates

A particularly useful feature is the ability to store templates for requests in BMC Remedy and load them dynamically as needed. This allows for much greater flexibility and efficiency in managing your integration processes. E.g. the following template is stored in an arbitrary form in Remedy:

{
  "ticket_id": "",
  "assigned_to": "",
  "priority": "",
  "notes": "

You can now dynamically switch templates based on usecase or data.

Sent an attachment

You can even send attachments as multipart/form-data:

const attachment = await adapter.remedy.getAttachment('HPD:WorkLog', 'WLG000000005023', '1000000351');

const form = new FormData();

form.append("myKey", "Some Value");

form.append("myAttachment", attachment.data, attachment.fileName);

customPayload.body = form;

Invitation to Try Out and Provide Feedback

We encourage all users to try out this new feature and share your feedback with us. Your responses are crucial for how we continue to develop and improve SMILEconnect.

If you have any questions about configuration or suggestions for further improvements, we’re here to help.

Enjoy the new update and continue to succeed with SMILEconnect!