Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
I am creating sales orders through the odata web services. Sometimes the sales lines are missing (other department needs to populate it) and I need to delete the sales order (the sales lines can be empty or have 1 or 2 lines) completely for the time being or else shipping would start working on incomplete SO. I'm using the http DELETE method with sales order number as the filter:
DELETE: URL - NAVSANDBOX.com:7048/.../SalesOrder eq 'SO-2078422'
But I get a 405 saying "'DELETE' requests for 'SalesOrder' of EdmType 'Collection' are not allowed within Microsoft Dynamics NAV OData web services."
Please suggest me how his can be accomplished.
Thanks in advance,
You need to specify the ETag, please check the below link and search for ETag
For deletion you can use below call to get one entity only as using $Filter can return collection :
this is not working.
"message": "Resource not found for the segment 'SalesOrder'."
Says resource not available. But when I do GET - "SalesOrder?$filter=No eq 'SO-2078422'"
I get the correct response.
I think the SO number was typo, resource not found means the SO Number does not exist . Try below :
You will get response 204 " No Content" when it is successfully deleted
is working absolutely fine.
I Gusti Made Ari Permadi Thanks a lot!
Will the same format `SalesOrder('Order','SO-2078422')` work for items/zip codes/customers?
Like: Items('Item','1234'), Customers('Customer','56787')?
Yes, it should be working as well. You only need to supply the primary key value . For items primary key is only Number so should be like this Items('1234')
Got it! Thanks again
I Gusti Made Ari Permadi
Business Applications communities