zoukankan      html  css  js  c++  java
  • Microsoft Dynamics AX 2012: How to get Company,Customer and Vendor address in AX 2012

    Scenario:  “How to get Addresses ofCustomer, Vendor and Company

    1)      First we need to identify which table store address of each entity

    Table : LogisticsPostalAddress  : In Dynamics AX 2012 this is the main table which stores every address of each entity(customer/vendor…).This table contains fields like city,country,state,zipCode etc. required for the address.

    a)      Customer/Vendor  address

    Assume that we have the customer with CustAccount = 1103 and has the address and infact which is the primary/main address.(below)

    Img1

    Now if we want to get this specific customer address we can use the following code.

    Img2

    Simliar for the Vendor

    Img3

    Use following code:

    Img4

    a)      Company Address

    For the Company address we can use the CompnayInfo table to get first the company and then find its address in LogisticsPostalAddress table.

    We can find the LogisticsPostalAddress of the current company by Location .

    This line give the location of the current company

    Now get the logisticsPostalAddress reference we can use and find the address

    So,

    Img5

    Img6

      reference from :https://amazingax.wordpress.com/2014/01/28/microsoft-dynamics-ax-2012-how-to-get-customervendor-and-company-address-in-ax-2012/

  • 相关阅读:
    leecode4:寻找两个正序数组的中位数
    leecode3:无重复字符的最长子串
    leecode2:两数相加
    KMP字符串模式匹配
    01迷宫问题
    汉诺塔问题
    微服务-基于Grpc的进程通信-Grpc异常捕获RpcException(4-4)
    React-Antd Pro增删改查
    HTTP 请求
    创业路上-1
  • 原文地址:https://www.cnblogs.com/Tokywu/p/4660745.html
Copyright © 2011-2022 走看看