web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Issues with Using D365...
Power Apps
Answered

Issues with Using D365 OData API to Update Single Customer Address (CustomerPostalAddresses)

(1) ShareShare
ReportReport
Posted on by 4

I'm currently facing an issue while trying to update or patch a customer's address using the D365 OData API. Specifically, when attempting to call for a single address entity, I encounter an error (404 Not Found) along with the message "No HTTP resource was found that matches the request URI 'https://usnconeboxax1aos.cloud.onebox.dynamics.com/data/CustomerPostalAddresses(dataAreaId='xxx',AddressLocationId='xxxxx')?cross-company=true'." The error further states that no route data was found for this request.

I tried with diffrent parramete like CustomerAccountNumber, CustomerLegalEntityId etc.

 

While performing a GET request using the following URL "https://usnconeboxax1aos.cloud.onebox.dynamics.com/data/CustomerPostalAddresses?cross-company=true&$top=5&$filter=CustomerAccountNumber eq 'XXXXX'," I successfully receive accurate results

 

Categories:
I have the same question (0)
  • Verified answer
    JuniorD Profile Picture
    8 on at

    @Zia_ur_Rehman I have the exact same issue (with another data entity: "ProductDocumentAttachments"). Did you find the cause/a solution ?

     

    Ok I found the solution! My problem was that I put simple quotes around the date (which is part of the key) :

     

    /data/ProductDocumentAttachments(ProductNumber='HF000053',DocumentAttachmentTypeCode='File',AttachmentDescription='xxxx',AttachedDateTime='2023-10-25T12:09:04Z') => HTTP 404 "No route data was found for this request"

     
    /data/ProductDocumentAttachments(ProductNumber='HF000053',DocumentAttachmentTypeCode='File',AttachmentDescription='Slow',AttachedDateTime=2023-10-25T12:09:04Z) => HTTP 200

     

    ----

     

    Now with your entity "CustomerPostalAddresses", the key is actually 4 fields (you can see it in the "/data/$metadata" file) :

     

    <EntityType Name="CustomerPostalAddress">
    <Key>
    <PropertyRef Name="dataAreaId" />
    <PropertyRef Name="CustomerAccountNumber" />
    <PropertyRef Name="CustomerLegalEntityId" />
    <PropertyRef Name="AddressLocationId" />
    <PropertyRef Name="Effective" />
    </Key>
    <!-- ... -->
    </EntityType>
     
    So you have to use these 4 fields in the "get by id" request :
     
    GET /data/CustomerPostalAddresses(dataAreaId='abcd',CustomerAccountNumber='CS000006',CustomerLegalEntityId='abcd',AddressLocationId='LFO000000258',Effective=2022-06-28T16:19:41Z) => HTTP 200
     
    Notice that you must not use simple quotes for the date value.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 408

#3
timl Profile Picture

timl 339 Super User 2026 Season 1

Last 30 days Overall leaderboard