Unable to pass the domain via Context to the requests.json in Freshdesk_vue_app

Hi,

We’re currently working on developing a Freshdesk Custom application using Freshdesk_Vue_app. However, we’re facing an issue with passing the domain via the context to the schema host in the requests.js file.

Our approach involves using client.request.invokeTemplate on the client side, rather than the server side.

Please assist us to resolve this issue as soon as possible.

Additionally, we would like to inquire whether Freshdesk_Vue_app is currently in beta version.

Is there any update on this ?

@Bharath_Raghuraja It seems to be functioning smoothly on the server side without any hitches. However, I’m curious as to why it’s not functioning as expected on the frontend application. @Thakur_Ganeshsingh , could you lend your expertise to troubleshoot this issue?

Hi @Bharath_Raghuraja and @Gopi ,

Thank you for tagging me.

For server-side invocation we use $request, for example

await $request.invokeTemplate("templateName", {
      body: JSON.stringify(args.data),
    });

For client-side invocation we use client for example

await client.request.invokeTemplate("getTickets", {
    context: {
      page: 2,
    }
  });

Further to ensure they are getting invoked we need to add the appclient script in HTML

    <script src="{{{appclient}}}"></script>

When the template is invoked correctly, you shall see the dprouter call in your network calls.

Regards,
Thakur