Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / How to patch product a...
Finance forum
Answered

How to patch product attributes via API

Posted on by 125
Hi,
 
I'm using D365 F & O and would like to update Product Attributes values via an API - I'm currently testing in Postman.
 
I only need to update the TextValue and BooleanValue of the actual Product Attributes - the AttributeTypeName and AttributeName already exist.
 
PATCH: /data/ProductAttributeValuesV3(ProductNumber='001234')
 
In the body I specify:
 
        {
            /AttributeTypeName/: /Brand/,
            /AttributeName/: /Brand/,
            /BooleanValue/: /No/,
            /TextValue/: /Test/
        }
 
But I keep receiving a 401 // not found:
 
{
    /Message/: /No HTTP resource was found that matches the request URI 'https://xxxxxxxxx/data/ProductAttributeValueV3(ProductNumber='001234')'. No route data was found for this request./
}
 
How do I update the text value // boolean value?  
 
 
  • Verified answer
    Michael Hutcheson Profile Picture
    Michael Hutcheson 125 on at
    How to patch product attributes via API
    Its working - the keys are Product Number \ AttributeTypeName \ AttributeName
     
    If we pass those in the URL:
     
    patch:
    /data/ProductAttributeValuesV3(ProductNumber='001213',AttributeTypeName = 'Brand',AttributeName = 'Brand')
     
    Then the values we want to update in the Body:
     
            {
                "BooleanValue": "No",
                "TextValue": "Test"
            }
     
    This will update D365 F&O.
     
    Not sure if this will help anyone wanting to update the Product Attributes via REST
     
     
  • Michael Hutcheson Profile Picture
    Michael Hutcheson 125 on at
    How to patch product attributes via API
    I still get the 404 not found:
     
    PATCH: 
     
    "Message": "No HTTP resource was found that matches the request URI 'https:XXXXXXXXXX/data/ProductAttributeValuesV3(ProductNumber='001234',AttributeTypeName = 'Brand',AttributeName = 'Brand',BooleanValue = 'No',TextValue = 'tEST123' )'. No route data was found for this request."
  • Martin Dráb Profile Picture
    Martin Dráb 228,135 Most Valuable Professional on at
    How to patch product attributes via API
    The problem seems to be in /data/ProductAttributeValueV3(ProductNumber='001234'). The product number alone is not sufficient for finding an individual product attribute value. Use all fields of the entity key.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,277 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,135 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans