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 :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Commerce Runtime controller RoutePrefix

(1) ShareShare
ReportReport
Posted on by 15
Hello
Is it possible to use existing RoutePrefix or create extension to Commerce Scale Unit (Commerce Runtime) controller?
 
For example:
[RoutePrefix("Customers")]
public class XKOMCustomersController : IController
{
	[HttpGet]
	[Authorization(CommerceRoles.Application)]
	public async Task<Customer> GetCustomerSimplified(IEndpointContext context, string accountNumber)
	{
That works but it shows as warnings in healthcheck?testname=extensions 
Controllers (Invalid route prefix)
 
Is there a better way to do this? Except not using RoutePrefix at all.
 
I have the same question (0)
  • Suggested answer
    Judy Profile Picture
    Microsoft Employee on at
    Hi, the MS document has mentioned that if you use an invalid route prefix, it will show as a warning in the health check: Controllers (Invalid route prefix)
    • Adding out of the box RoutePrefix (for example, Customers and Product) and binding out of the box entities (for example, Product, Cart, and Customer) is not supported. You can add only custom RoutePrefix and Custom entity.
    The reference links:

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

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 88 Super User 2026 Season 1

#2
Sagar Suman Profile Picture

Sagar Suman 72 Super User 2026 Season 1

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 54 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans