Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

OData Query

(0) ShareShare
ReportReport
Posted on by 1,670

i have a function contains OData Query to get opportunity fields values:

var ODataQuery = "/OpportunitySet?$select=transactioncurrencyid,new_datelimite,new_valeur&$filter=OpportunityId eq (guid'" + oppId.toString() + "')"; 


after execution of query the response : has no property named "new_valeur" (customized field)

<error><code/><message xml:lang="fr-FR">Le type 'Microsoft.Crm.Sdk.Data.Services.Opportunity' n'a pas de propriété nommée 'new_valeur'.</message></error>


*This post is locked for comments

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: OData Query

    Hi,

    In addition to field check, you also need to make sure you are using schema name of the field not logical name in your OData request.

    Thanks

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: OData Query

    Please check whether you have an attribute with schema name as 'new_valeur' in opportunity entity.

  • Suggested answer
    Aiden Kaskela Profile Picture
    Aiden Kaskela 19,692 on at
    RE: OData Query

    Hi Ammar,

    This is a stupid question, but do you have a field with the schema "new_valeur", and you published the customizations?

    Thanks,

     Aiden

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans