Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Publish Solution on App Source

Posted on by 20

Hello,

I want to publish my custom solution on App Source, but i have some customization of javascript / jquery which is not supported by Microsoft.

Is there any other method to publish it on App Source with such customization.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Publish Solution on App Source

    Vaishali, did you find an answer to this? I came across the same issue and have not found a solution yet.

     

    Thanks.

  • Vaishali Aghera Profile Picture
    Vaishali Aghera 20 on at
    RE: Publish Solution on App Source

    Hi,

    This is also in the list that we can't use parent.document.getmentbyId in Rule ID "web-avoid-dom-form".

    Description:

    Filename: portalprofileselectioncontrol.html

    'parent.document.getElementById("overlay")' accesses the document object model (DOM) managed by a model-driven app directly. This technique is unsupported in all versions of Dynamics 365 and PowerApps.  Remove or replace with a supported Client API Object Model.

    go.microsoft.com/.../

  • Suggested answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Publish Solution on App Source

    Hi partner,

    If you want to get DOM on the form by getElememnt, you need to add "parent" before "document" .

    For example, I want to get the DOM of the formtitle on the form, I could use this code.

    var div=document.getElementById("FormTitle");

    And here is the result.

    community78.png

    Hope it helps.

    Best Regards,

    Leo

  • Kalpavruksh D365 CoE Profile Picture
    Kalpavruksh D365 CoE 2,545 on at
    RE: Publish Solution on App Source

    Hi Vaishali,

    Did you get a response from Microsoft AppSource team? Can you please share a specific JS file name?

  • Vaishali Aghera Profile Picture
    Vaishali Aghera 20 on at
    RE: Publish Solution on App Source

    Hi Leo,

    Thanks for your response.

    I have added HTML web resource on click of one custom ribbon button. But Microsoft is not allowing us to pick DOM element directly, is there other way by which we can achieve this?

    Please find below sample code which i am using in one of my file. 

    pastedimage1563429930128v1.png

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Publish Solution on App Source

    Hi partner,

    According to this DOC, JS is supported in both forms and web resources in D365, but Jquery is not supported in Form.

    community77.png

    So could you kindly share more information about where did you use JS/Jquery in your solution and what does "javascript / jquery which is not supported by Microsoft" mean?

    Hope it helps.

    Best Regards,

    Leo

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

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