OData Query Columns

primeap
Member Posts: 37
Hello
I am wondering if it is possible with NAV2013 Odata to limiting the columns returned.
Like in CRM (h[url]ttp://msdn.microsoft.com/en-us/library/gg309461.aspx[/url])
For example, the query /AccountSet?$select=Name,opportunity_customer_accounts&$expand=opportunity_customer_accounts returns only the account name and the expanded opportunity records.
I know we can use Filters (http://msdn.microsoft.com/en-us/library/hh169248(v=nav.70).aspx)
but how to select specific columns?
Best Regards
Thank you for any feedback.
I am wondering if it is possible with NAV2013 Odata to limiting the columns returned.
Like in CRM (h[url]ttp://msdn.microsoft.com/en-us/library/gg309461.aspx[/url])
For example, the query /AccountSet?$select=Name,opportunity_customer_accounts&$expand=opportunity_customer_accounts returns only the account name and the expanded opportunity records.
I know we can use Filters (http://msdn.microsoft.com/en-us/library/hh169248(v=nav.70).aspx)
but how to select specific columns?
Best Regards
Thank you for any feedback.
0
Best Answer
-
Well dont know why I did not realize it earlier. but you CAN already do that..
http://localhost:7048/DynamicsNAV70/Oda ... ct=No,Name
so just add a ?$select=
after the entity
and then the fields5
Answers
-
Hi
I would suggest creating a new page with only the columns that are required and publishing that page.________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com0 -
This would be my alternative.. but in some cases it would be more efficient to just have the page created and published once..
Really no chance to get this done in NAV?0 -
Well dont know why I did not realize it earlier. but you CAN already do that..
http://localhost:7048/DynamicsNAV70/Oda ... ct=No,Name
so just add a ?$select=
after the entity
and then the fields5
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions