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
- custName
Type: DirPartyName Extended Data Type
Customer name.
- custGroup
Type: CustGroupId Extended Data Type
Customer group
- currency
Type: CustCurrencyCode Extended Data Type
Currency
- languageId
Type: CustLanguageId Extended Data Type
Language ID
- street
Type: AddressStreet Extended Data Type
Street
- zipCode
Type: AddressZipCodeId Extended Data Type
Zip code
- state
Type: AddressStateId Extended Data Type
State
- county
Type: AddressCountyId Extended Data Type
County
- phone
Type: Phone Extended Data Type
Phone
- cellularPhone
Type: PhoneMobile Extended Data Type
Cell phone
- email
Type: LogisticsElectronicAddressLocator Extended Data Type
Email
- url
Type: URL Extended Data Type
URL
- multiLineDisc
Type: CustMultiLineDiscCode Extended Data Type
Multiline discount
- endDisc
Type: CustEndDiscCode Extended Data Type
End discount
- lineDisc
Type: CustLineDiscCode Extended Data Type
Line discount
- priceGroup
Type: CustPriceGroup Extended Data Type
Price Group
- taxGroup
Type: TaxGroup Extended Data Type
Tax Group
- creditMax
Type: CustCreditMaxMST Extended Data Type
Credit Max
- blocked
Type: CustBlocked Extended Data Type
Blocked
- orgId
Type: OrgId Extended Data Type
Org ID
- usePurchRequest
Type: RetailUsePurchRequest Extended Data Type
Use purchase request
- vatNum
Type: VATNum Extended Data Type
Vat Number
- invoiceAccount
Type: CustInvoiceAccount Extended Data Type
Invoice account
- mandatoryCreditLimit
Type: MandatoryCreditLimit Extended Data Type
Mandotory credit limit
- contactPersonId
Type: ContactPersonId Extended Data Type
Contact person ID
- useOrderNumberReference
Type: RetailUseOrderNumberReference Extended Data Type
Use order number reference
- receiptOption
Type: RetailReceiptOption Extended Data Type
Receipt option
- receiptEmail
Type: RetailReceiptEmail Extended Data Type
Receipt Email
- city
Type: AddressCity Extended Data Type
City
- country
Type: AddressCountryRegionId Extended Data Type
Country
- identificationNumber
Type: CustIdentificationNumber Extended Data Type
Identification Number
- storeRecId
Type: int64
Store Rec ID
- relationType
Type: RelationType Extended Data Type
- streetNumber
Type: LogisticsAddressStreetNumber Extended Data Type
Street Number
- districtName
Type: LogisticsAddressDistrictName Extended Data Type
District Name
- buildingCompliment
Type: LogisticsAddressBuildingCompliment Extended Data Type
Building Complement
- cnpjCpfNum_BR
Type: CNPJCPFNum_BR Extended Data Type
CNPJ/CPF (Brazilian tax ID)
- addressName
Type: CustName Extended Data Type
Address Name
- addressType
Type: LogisticsLocationRoleType Enumeration
Address Type
- addressPhone
Type: Phone Extended Data Type
Address Phone
- addressEmail
Type: LogisticsElectronicAddressLocator Extended Data Type
Address Email
- addressUrl
Type: URL Extended Data Type
Address URL
- addressTaxGroup
Type: TaxGroup Extended Data Type
Address Tax group
- firstName
Type: FirstName Extended Data Type
- middleName
Type: MiddleName Extended Data Type
- lastName
Type: LastName Extended Data Type
- phoneExtension
Type: PhoneLocal Extended Data Type
- retailCustAffiliations
Type: str
Return Value
Type: container
Container with entity keys