Freshdesk Full page app can't able to get query params from the URL

Need to get query param values from full-page app URL.

Ex : From URL -> https://acme.freshdesk.com?/a/apps/customapp?key=test1&value=test2 Get params { key:"test1", value:"test2" }

Methods tried so far:

  • new URLSearchParams(window.location.search);
    This returns {}

  • window.parent.location since the app renders inside an iframe

image

But when trying it on the browser console, I could able to get the iframe URL and query params
image

What I am trying to achive?

I am trying to navigate from Freshchat to Freshdesk full-page app when a button is clicked on Freshchat sidebar, which will pass some information in the query params.

Please help me with this or suggest a suitable approach to accomplish this.
Thanks in advance.

@Gopi_Krishnan,
it is not possible to get the query string values of URL in your app, since it is sandboxed (due to security constraints), and not possible to share the data between apps on the platform,
one way I can think of is to use any external database such as firebase to get the data b/w apps
another way is implementing the middleware to cache the record of one app and retrieve it in another app.

Hope it helps :slight_smile:

Thanks

1 Like

Thanks for your quick response and suggestion @Santhosh.

1 Like

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.