Recent searches


No recent searches

Dashboard UI Metadata Retrieval Issue in Channel Apps



Posted Apr 15, 2024

Hi team,
 

I have been facing an issue moving forward with the channel apps. 

I am trying to render a dashboard UI as there is an option within the channel manifest, but I am unable to fetch the metadata. 

Could you please let us know how to get the metadata for dashboard_url or else we can pass it as params?

Shared the snippet below that I have used.

 

export const manifest = (req: Request, res: Response) => {
 console.log('manifest >>', req.body);
 
 const metadata = req.body?.metadata?.userToken || 'notoken';
 
 res.send({
   name: 'Channel Integration',
   id: 'zendesk-channel-integration',
   author: 'Anish',
   version: 'v0.0.1',
   channelback_files: true,
   create_followup_tickets: true,
   urls: {
     admin_ui: './admin_ui',
     pull_url: './pull',
     channelback_url: './channelback',
     clickthrough_url: './clickthrough',
     healthcheck_url: './healthcheck',
     event_callback_url: './event_callback',
     dashboard_url: `./dashboard_ui/${metadata}`,
   },
 });
};

export const dashboardUi = (req: Request, res: Response) => {
 const { metadata, state } = req.body;
 console.log('dashboard_ui >>', req.params, metadata, state);
};

0

6

6 comments

Hi team,

Is there anything else we can achieve?

0


Hi Team
Is there any update?

0


image avatar

Christopher Kennedy

Zendesk Developer Advocacy

Hi Anish,
 
When testing, are you seeing metadata values successfully logged to the console?

0


Hi Christopher Kennedy ,

I am unable to see the metadata while testing. Even though the req.body comes empty, both in the manifest and the dashboard URI. 

Sometimes, I am unable to see the console itself in the manifest. Is there anything else I can do?

0


Hi Christopher,
 

Is there anything else needed from my end? Kindly assist me in moving forward.

Awaiting your response.

0


image avatar

Christopher Kennedy

Zendesk Developer Advocacy

Hi Anish,
 
I see that you're encountering a couple of issues with your integration.  I've created a ticket to work with you directly on them.  Please refer to the ticket for next steps.

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post