Thursday, April 19, 2012

Retrieve Used Resources for an Organization and Storage Quota Info in Microsoft Dynamics CRM 2011 Using VB.NET

This illustration shows how to retrieve used resources for an organization like number of custom entities and storage quota information in Microsoft Dynamics CRM 2011 with RetrieveOrganizationResourcesRequest.   This example will be given in VB.NET
    Ok, here is what the code looks like!
    In VB.NET:

    Dim req As New RetrieveOrganizationResourcesRequest
    Dim resp As RetrieveOrganizationResourcesResponse = DirectCast(slos.Execute(req), RetrieveOrganizationResourcesResponse)
    
    

    This will provide information like:

    - Number of Active Users
    - Number of Custom Entities
    - Number of Non-Interactive Users
    - Number of Published Workflows
    - Current Storage (in Megabytes)

    It will also provide quota information like:

    - Max Number of Active Users
    - Max Number of Custom Entities
    - Max Number of Non-Interactive Users
    - Max Number of Published Workflows
    - Max Storage ( in Megabytes)

    - There you go!

    No comments:

    Post a Comment