Share via


RetailTransactionService::newCustomer Method [AX 2012]

Method is used for creating new customer.

Syntax

Note

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.

  Microsoft Dynamics AX 2012 R3
          client server public static container newCustomer(
            DirPartyName custName, 
            CustGroupId custGroup, 
            CustCurrencyCode currency, 
            CustLanguageId languageId, 
            AddressStreet street, 
            AddressZipCodeId zipCode, 
            AddressStateId state, 
            AddressCountyId county, 
            Phone phone, 
            PhoneMobile cellularPhone, 
            LogisticsElectronicAddressLocator email, 
            URL url, 
            CustMultiLineDiscCode multiLineDisc, 
            CustEndDiscCode endDisc, 
            CustLineDiscCode lineDisc, 
            CustPriceGroup priceGroup, 
            TaxGroup taxGroup, 
            CustCreditMaxMST creditMax, 
            CustBlocked blocked, 
            OrgId orgId, 
            RetailUsePurchRequest usePurchRequest, 
            VATNum vatNum, 
            CustInvoiceAccount invoiceAccount, 
            MandatoryCreditLimit mandatoryCreditLimit, 
            ContactPersonId contactPersonId, 
            RetailUseOrderNumberReference useOrderNumberReference, 
            RetailReceiptOption receiptOption, 
            RetailReceiptEmail receiptEmail, 
            AddressCity city, 
            AddressCountryRegionId country, 
            CustIdentificationNumber identificationNumber, 
            int64 storeRecId, 
            RelationType relationType, 
           [LogisticsAddressStreetNumber streetNumber, 
            LogisticsAddressDistrictName districtName, 
            LogisticsAddressBuildingCompliment buildingCompliment, 
            CNPJCPFNum_BR cnpjCpfNum_BR, 
            CustName addressName, 
            LogisticsLocationRoleType addressType, 
            Phone addressPhone, 
            LogisticsElectronicAddressLocator addressEmail, 
            URL addressUrl, 
            TaxGroup addressTaxGroup, 
            FirstName firstName, 
            MiddleName middleName, 
            LastName lastName, 
            PhoneLocal phoneExtension, 
            str retailCustAffiliations])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static container newCustomer(
            DirPartyName custName, 
            CustGroupId custGroup, 
            CustCurrencyCode currency, 
            CustLanguageId languageId, 
            AddressStreet street, 
            AddressZipCodeId zipCode, 
            AddressStateId state, 
            AddressCountyId county, 
            Phone phone, 
            PhoneMobile cellularPhone, 
            Email email, 
            URL url, 
            CustMultiLineDiscCode multiLineDisc, 
            CustEndDiscCode endDisc, 
            CustLineDiscCode lineDisc, 
            CustPriceGroup priceGroup, 
            TaxGroup taxGroup, 
            CustCreditMaxMST creditMax, 
            CustBlocked blocked, 
            OrgId orgId, 
            RetailUsePurchRequest usePurchRequest, 
            VATNum vatNum, 
            CustInvoiceAccount invoiceAccount, 
            MandatoryCreditLimit mandatoryCreditLimit, 
            ContactPersonId contactPersonId, 
            RetailUseOrderNumberReference useOrderNumberReference, 
            RetailReceiptOption receiptOption, 
            RetailReceiptEmail receiptEmail, 
            AddressCity city, 
            AddressCountryRegionId country, 
            CustIdentificationNumber identificationNumber, 
            int64 storeRecId, 
            RelationType relationType, 
           [LogisticsAddressStreetNumber streetNumber, 
            LogisticsAddressDistrictName districtName, 
            LogisticsAddressBuildingCompliment buildingCompliment, 
            CNPJCPFNum_BR cnpjCpfNum_BR, 
            CustName addressName, 
            LogisticsLocationRoleType addressType, 
            Phone addressPhone, 
            Email addressEmail, 
            URL addressUrl, 
            TaxGroup addressTaxGroup])

Run On

Called

Parameters

  • storeRecId
    Type: int64
    Store Rec ID
  • retailCustAffiliations
    Type: str

Return Value

Type: container
Container with entity keys

See Also

Reference

RetailTransactionService Class