How to retrieve details of current page from widget?

How to retrieve details of current page from widget?

Hi,

Does anyone know if there's a way to retrieve the details of the user's current page from a background widget (or any other for that matter)?

When user navigates to a page, I want to check what type of page it is (e.g. ticket detail) and then decide whether or not to take action.

I want to identify the current page when the app loads, since the user may have navigated to the app from a link.

Best I can do at the moment is set up an event handler for the `ticket_shift` and `pageChange` events, but this only works if the user navigates to the page/ticket from within the app,  not when the page first loads.

Is there something better I can do?  It feels like I'm missing something, but can't find it in the documentation.

Many thanks

Tim
  1. //Change from one ticket to another
  2. App.instance.on('ticket_Shift', function (data: any) {...});
  3. //Change Page
  4. App.instance.on('pageChange', function (data: any) {...});


    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方