Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

How can I get View name for all the languages same as Entity or Field name in Dynamics 365 c#?

Posted on by 3,508

Hi,

I want to get name of the Entity View for all the active languages in MS Dynamics 365. I can get View name using following query but it provide me name in language of currently logged in CRM User.

https://mycrm.crm.dynamics.com/api/data/v8.2/savedqueries?$filter=returnedtypecode eq 'incident' and savedqueryid eq '00000000-0000-0000-00aa-000000666200'

How can I get View name for all the languages same as Entity or Field name?

Thank you

  • RE: How can I get View name for all the languages same as Entity or Field name in Dynamics 365 c#?

    Hi Maulik,

    I did not try but looking at the below docs, it looks quite promising.

    docs.microsoft.com/.../microsoft.crm.sdk.messages.retrieveloclabelsrequest

    Did you explore that SDK request already?

  • CRMJetty Profile Picture
    CRMJetty 3,508 on at
    RE: How can I get View name for all the languages same as Entity or Field name in Dynamics 365 c#?

    Hi Ioannis,

    Thanks for the answer. I am using C# to fetch metadata. Can I get this using MS Dynamics SDK?

  • CRMJetty Profile Picture
    CRMJetty 3,508 on at
    RE: How can I get View name for all the languages same as Entity or Field name in Dynamics 365 c#?

    Hi Ioannis,

    Thanks for the answer. I am using C# to fetch metadata. Can I get this using MS Dynamics SDK?

  • Suggested answer
    RE: How can I get View name for all the languages same as Entity or Field name in Dynamics 365 c#?

    Hi Maulik,

    there is a way for v9.x API (the below does not exist on v8.2):

    api/data/v9.0/RetrieveSolutionComponentInstances(SolutionComponentName='LocalizedLabel',ColumnNames=['objectid'],ColumnValues=['a18e3a4a-429d-4a98-9466-f7aa7068b5c3'],SolutionName='ProjectService',RetrieveChangesOnly=false)

    Please be aware about these 2 parameters:

    Yellow = your savedqueryid

    Green = the solution name of the solution owning the localized labels (this example is a PSA owned view)

    If you need to find all the solution layers of the respective savedquery per API, you can use:

    api/data/v9.0/RetrieveSolutionMetadataForComponent(SolutionComponentName='SavedQuery',ColumnNames=['savedqueryid'],ColumnValues=['a18e3a4a-429d-4a98-9466-f7aa7068b5c3'])

    (this is also not available on v8.2)

    Highlighting that these are not officially documented methods, so please use these being aware about that

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