web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Retrieve managed solution version

(0) ShareShare
ReportReport
Posted on by

In dynamics crm, I want to get managed solution version in javascript. Is it possible to get that in javascript? If it is possible then please suggest.

*This post is locked for comments

I have the same question (0)
  • Karsten Wirl Profile Picture
    4,477 on at

    Hi Dinal.

    Please can you post some more details about your issue?

    Kind regards,

    Karsten

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at

    Hi Dinal,

    You could retrieve the solution entity record filtered by the unique name of the managed solution and get the version of the solution using WebAPI in javascript. There is an entity called solution and it has fields unique name and version.

    The link below helps you to retrieve records using Web API in Dynamics CRM.

    community.dynamics.com/.../ms-crm-2016-web-api-operations-retrieve-single-or-multiple-records

    Hope this helps.

  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    You can call a Retrieve Multiple Web API function on the solution entity, pass the solution name and select the version number attribute from the solution entity.

    You can use CRM Rest Builder (by Jason Lattimer) to generate the Web Api code that you need.

    Download the solution from gitub:

    github.com/.../CRMRESTBuilder

    Install and create your query against the solution entity and see the code that you need to use in JavaScript.

    Hope this helps.

  • Suggested answer
    Syed Ibrahim Profile Picture
    6,257 on at

    Pls modify the below Query and pass the Solution GuId instead of xxxxx & get the details.

    /// Get Solution Details///////////////

    var req = new XMLHttpRequest();
    req.open("GET", Xrm.Page.context.getClientUrl() + "/api/data/v8.0/solutions(xxxxxxxxxxx)?$select=createdon,friendlyname,ismanaged,_modifiedby_value,solutiontype,uniquename,version", true);
    req.setRequestHeader("OData-MaxVersion", "4.0");
    req.setRequestHeader("OData-Version", "4.0");
    req.setRequestHeader("Accept", "application/json");
    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
    req.setRequestHeader("Prefer", "odata.include-annotations=\"OData.Community.Display.V1.FormattedValue\"");
    req.onreadystatechange = function () {
    if (this.readyState === 4) {
    req.onreadystatechange = null;
    if (this.status === 200) {
    var result = JSON.parse(this.response);
    var createdon = result["createdon"];
    var friendlyname = result["friendlyname"];
    var ismanaged = result["ismanaged"];
    var ismanaged_formatted = result["ismanaged@OData.Community.Display.V1.FormattedValue"];
    var _modifiedby_value = result["_modifiedby_value"];
    var _modifiedby_value_formatted = result["_modifiedby_value@OData.Community.Display.V1.FormattedValue"];
    var solutiontype = result["solutiontype"];
    var solutiontype_formatted = result["solutiontype@OData.Community.Display.V1.FormattedValue"];
    var uniquename = result["uniquename"];
    var version = result["version"];
    }
    else {
    alert(this.statusText);
    }
    }
    };
    req.send();

    //// End/////

    Hope this helps

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at

    Hi Dinal,

    Try to use the code below.

    var req = new XMLHttpRequest();
    var managedSolutionDisplayName = "yourManagedSolutionDisplayName"
    req.open("GET", Xrm.Page.context.getClientUrl() + "/api/data/v8.0/solutions?$select=version&$filter=friendlyname eq '" + managedSolutionDisplayName + "'", true);
    req.setRequestHeader("OData-MaxVersion", "4.0");
    req.setRequestHeader("OData-Version", "4.0");
    req.setRequestHeader("Accept", "application/json");
    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
    req.onreadystatechange = function () {
    if (this.readyState === 4) {
    req.onreadystatechange = null;
    if (this.status === 200) {
    var result = JSON.parse(this.response); 
    var version = result["version"];
    }
    else {
    alert(this.statusText);
    }
    }
    };
    req.send();

    Hope this helps.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans