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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

UPM pricing calculation API requires ProductRecordId — is there a standard ItemId lookup?

(0) ShareShare
ReportReport
Posted on by

We are integrating an external system with the Dynamics 365 SCM Unified Pricing
Management pricing calculation API:

/api/services/GUPPricingServiceGroup/GUPPricingService/getActivePrices

The API requires ProductRecordId in LineContexts. Our external system only has
ItemId. 

ReleasedProductsV2 API lets us resolve ItemNumber to ProductNumber, but we
cannot find a standard OData entity or API that returns the numeric
ProductRecordId / EcoResProduct.RecId.

Is there a supported standard way to resolve ItemId to ProductRecordId, or is a
custom X++ service/entity the only supported option? Has anyone else integrated
an ItemId-based external system with this API?
 

  • Suggested answer
    Patrick Mouwen Profile Picture
    215 on at

    Hi,

    Short answer: the API only takes the product's record ID, but you don't need custom X++ to find it. Two standard public OData entities already expose it:
     

    1. Products without variants, and product masters → RetailInventTable. Per company it returns ItemId and Product, and Product is exactly the record ID the pricing API expects.
    GET {D365_URL}/data/RetailInventTable?$filter=ItemId eq 'A0001' and dataAreaId eq 'usmf'&cross-company=true

    Despite the name, it sits in the Foundation model under the standard LogisticsBasic configuration key, so it should be available without Commerce.
     

    2. Variants → ProductNumberIdentifiedReleasedProductVariants. It returns ItemNumber, the product dimensions and ProductVariantRecId. For a variant line, the pricing service matches on exactly that variant record ID.
     

    Practical tips:
    - A product's record ID doesn't change, so resolve it once and cache the ItemId to ProductRecordId mapping in your external system; only look up new items. Don't carry the mapping between environments though: record IDs differ unless the database was copied.
    - The response returns ItemId and ProductId per item, so you can match results to your own item numbers.
    - Make sure the integration user's role has access to both entities.
     

    Patrick

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 62 Super User 2026 Season 2

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 57 Super User 2026 Season 2

#3
Patrick Mouwen Profile Picture

Patrick Mouwen 50

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans