Is it possible to trigger interface methods from server.js file?

Hi,

When a contact is created in Freshworks CRM, need to trigger interface method such as confirm box or modal. Contact creation can be captured in serverless component of the app, from there is it possible to trigger interface method, will it show in the frontend.
Can we call any method in app folder from server folder.

Thanks in advance.

1 Like

Hello, I believe that the only way to do this is to create a midleware, in that midleware you would have to create a socket that connects to your frontend application.

4 Likes

@Marllon_Mainardes Thanks for your timely answer. That would be the best workaround possible right now.

@Gokulaselvan_T, As Marllon mentioned, it’s not possible to send a notification from Serverless app to frontend to call any interface methods and other frontend methods.

I will take it up as a feedback so that our team can validate the feature request and priorities it in the future. Would you be able to provide the following information to better understand the feature request based on your app needs?

  1. Should all the agents get the interface method triggered?
  2. Should it target a specific agent or agents with specific roles?
  3. Should it be real-time or can it be called whenever the agents open the app again?
  4. Does it require any information back as a confirmation? Or an immediate success response would be enough?
1 Like