Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

CIF's client side events not triggered as per the documentation

(0) ShareShare
ReportReport
Posted on by 5

We have built a custom integration using the CIF framework. On the CIF's side, everything works as expected (meaning that I am able to search records, add phone activities, etc). However, on the client side, none of the client side events is ever triggered. I am able to see in the Chrome's console logs that the event handlers are set the the CIF based page loads - below is the code snippet where the event handle is is attached 

Microsoft.CIFramework.addHandler("onpagenavigate", pageNavigateHandler);
console.log("Added pageNavigateHandler to the panel");

When the user navigates from one page to another (i.e from one contact to another one) the pageNavigateHandler handler is never triggered. If I review the Chrome's logs, I am able to see 2 errors that are keep poping up all the time:

The first kind of error is the one below

10:13:56.411 /%7b637241646380017147%7d/webresources/CRMClients/msdyn_internal_ci_library.js:1 Uncaught TypeError: Failed to construct 'URL': Invalid URL
at /%7b637241646380017147%7d/webresources/CRMClients/msdyn_internal_ci_library.js:1
at Array.find (<anonymous>)
at t.postMsgWrapper.processMessage (/%7b637241646380017147%7d/webresources/CRMClients/msdyn_internal_ci_library.js:1)

The second kind of error is: 

Uncaught in promise : occurred as no response was received from listener window

However the event handler function does nothing else than to print a confimation message to the console so it cannot throw any errors.

Has anyone else faced a similar issue ?

  • RE: CIF's client side events not triggered as per the documentation

    Hi, were you able to resolve this issue? I am also facing. Please help.

  • BPC Profile Picture
    BPC 55 on at
    RE: CIF's client side events not triggered as per the documentation

    Hello, Were you able to resolve this issue?

  • Fabio Branco Profile Picture
    Fabio Branco on at
    RE: CIF's client side events not triggered as per the documentation

    Hello CristianB,

    This error migth require aditional research, and troubleshoot.

    If you need futher assistance, please log a support ticket. We will be happy to assist you on this concern

    Thank you

  • CristianB Profile Picture
    CristianB 5 on at
    RE: CIF's client side events not triggered as per the documentation

    There one thing I would like to add - in the case of the onclicktoact handler, the error I obtain is the one below (also the event handler is never called):

    5 /%7b637241646380017147%7d/webresources/CRMClients/msdyn_internal_ci_library.js:1 Uncaught (in promise) Map(2)[[Entries]]0: {"message" => undefined}key: "message"value: undefined1: {"n" => "onclicktoact - raiseEvent"}key: "n"value: "onclicktoact - raiseEvent"size: (...)__proto__: Map

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans