Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Call Javascript web resources from Console.

Posted on by 10

Hi experts,

There is a javascript resource attached to a form. But during run, I cannot explicitly call functions from console. During check of page I don't see any imports of my js resource. Is there any way to execute function defined?

TIA.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Call Javascript web resources from Console.

    Can you please show us a screenshot of your form?

    thanks

  • Verified answer
    Temmy Wahyu Raharjo Profile Picture
    Temmy Wahyu Raharjo 2,914 on at
    RE: Call Javascript web resources from Console.

    For changing Source from javascript. Used :

    var url = Xrm.Page.context.getClientUrl() + "/WebResources/yourwebresource";

    Xrm.Page.getControl("controlName").setSrc(url);

    If you want to use via F12, just used:

    frames[0].Xrm.Page.getControl("controlName").setSrc(url);

    Or

    frames[1].Xrm.Page.getControl("controlName").setSrc(url);

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: Call Javascript web resources from Console.

    Hi mikluxo,

    Can you show us the functions you are attempting to call?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans