Hi All,
I’m working on common app of FCSS, where my app will be displayed in freshdesk, freshsales, freshchat etc.
so, as per documentation, using currentHost function, I’m getting data of selected modules for which my app will work.
async function getCurrentHostData() {
try {
const data = await client.data.get("currentHost");
// success operation
// "data" is {subscribed_modules: [“contact”, “deal”, ... }}
} catch (error) {
// failure operation
}
}
getCurrentHostData();
but, I need to get current module name only, where my app is open, like support_ticket or support_contact etc.
Because base on that, I’ll call my custom function or api.