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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Auto Populate / Set Default Financial Dimension for a Sales Order Based on the Sales Order Address

(1) ShareShare
ReportReport
Posted on by 31

Hi All,

I am working on a requirement to automatically populate or set the Sales Representative in the SalesRepresentativeTest financial dimension based on the city entered in the Sales Order delivery address.

Here's what I have done so far:

  • Created a backing table view named DimAttributeCommissionSalesRepTable based on the CommissionSalesRep table.
  • CommissionSalesRep fields: AddressCity, URSName, URSPartyNumber
  • DimAttributeCommissionSalesRepTable fields:
    • Key: RecID
    • Value: URSPartyNumber
    • Name: URSName
  • Created and activated a financial dimension called SalesRepresentativeTest.
  • Added SalesRepresentativeTest to the Sales Order page.
  • I am able to get the lookup for the SalesRepresentativeTest financial dimension as expected.

Now, I need to automatically set the SalesRepresentativeTest value based on the Sales Order's delivery address.

Could anyone please guide me on how to access and set the SalesRepresentativeTest field in X++ code based on the city of the Sales Order address?

SalesRep Financia...
CommissionSalesMe...
DimAttributeSales...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    304,121 Super User 2026 Season 1 on at
    Hi,
     
    Is there only one city per sales representative or can the same sales representative be linked to multiple cities? It the same representative can be use for multiple cities, your data model isn't suitable for your requirements.
  • Dinesh Srinivas Gadisetti Profile Picture
    31 on at
    Hi Andre
    Only one Representative for one city
  • Martin Dráb Profile Picture
    239,118 Most Valuable Professional on at
    Is this about AX 2012 or F&O? The attached images could answer that; unfortunately, I can't open them.
  • Dinesh Srinivas Gadisetti Profile Picture
    31 on at
    it is F&O
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 733

#2
André Arnaud de Calavon Profile Picture

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

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 278 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans