Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Auto Populate / Set De...
Finance forum
Unanswered

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

Posted on by 6

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 Financial Dim.jpg
CommissionSalesMember form and CommissionSalesRep Table.jpg
DimAttributeSalesRepTable.jpg
  • Auto Populate / Set Default Financial Dimension for a Sales Order Based on the Sales Order Address
    it is F&O
     
  • Martin Dráb Profile Picture
    Martin Dráb 225,513 Super User on at
    Auto Populate / Set Default Financial Dimension for a Sales Order Based on the Sales Order Address
    Is this about AX 2012 or F&O? The attached images could answer that; unfortunately, I can't open them.
  • Auto Populate / Set Default Financial Dimension for a Sales Order Based on the Sales Order Address
    Hi Andre
    Only one Representative for one city
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 287,773 Super User on at
    Auto Populate / Set Default Financial Dimension for a Sales Order Based on the Sales Order Address
    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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,773 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,513 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans