Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

GetGlobalOptionSetMetadata method is returning null

Posted on by 505

We just upgraded Dyanmics 365 to version 9.0. We updated the dlls for version 9.0

This method call CrmServiceClientInstance.GetGlobalOptionSetMetadata("OptionSetName"); is returning null.

Is there any way to fix this?

*This post is locked for comments

  • Verified answer
    Priyank Bhavsar Profile Picture
    Priyank Bhavsar 505 on at
    RE: GetGlobalOptionSetMetadata method is returning null

    When I looked at CRMServiceClient's CrmError property, it was having an error "Unable to Login to Dynamics CRMOrganizationServiceProxy is null". I mangaed to fix this issue by adding a line System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;  

    just above the line where I instantiate CRMServiceClient object.

    Hope this helps.

  • gdas Profile Picture
    gdas 50,085 on at
    RE: GetGlobalOptionSetMetadata method is returning null

    Hi Priyank ,

    Could you please download the SDK from here and check , seems something is missing in the reference you took.

    http://xrm.tools/SDK

  • Priyank Bhavsar Profile Picture
    Priyank Bhavsar 505 on at
    RE: CRMServiceClient not being instantiated using Connection string

    Yes, I'm using latest assemblies which I downloaded using Nuget.

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: CRMServiceClient not being instantiated using Connection string

    Are you using the latest assembly references?

    Download the latest from Nuget manager and try again.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans