microsoft.dynamics365.finance.customermain
Module microsoft.dynamics365.finance.customermain
API
Definitions
ballerinax/microsoft.dynamics365.finance.customermain Ballerina library
Overview
Microsoft Dynamics 365 Finance is Microsoft's cloud ERP solution for financial management, covering general ledger, accounts receivable and payable, fixed assets, budgeting, cash and bank management, and tax.
The microsoft.dynamics365.finance.customermain connector provides access to Microsoft Dynamics 365 Finance Customer Main entities via the OData REST API.
Key Features
- Manage customer main entities in Microsoft Dynamics 365 Finance
- Support for list, create, read, update, and delete operations
- OAuth2 client credentials authentication
Setup guide
Prerequisites
- A Microsoft Dynamics 365 Finance & Operations environment (cloud-hosted or sandbox)
- An Azure Active Directory (Entra ID) app registration with API permissions for Dynamics 365
Step 1: Register an application in Azure AD
-
Sign in to the Azure portal and navigate to Azure Active Directory → App registrations → New registration.
-
Give the application a name, select the appropriate account type, and click Register.
-
Note the Application (client) ID and Directory (tenant) ID from the overview page.
-
Under Certificates & secrets, create a new client secret and note the value immediately — it is only shown once.
Step 2: Grant Dynamics 365 API permissions
-
In the app registration, go to API permissions → Add a permission → APIs my organization uses.
-
Search for Dynamics 365 (or
Microsoft Dynamics ERP) and add theuser_impersonation(or.default) delegated/application scope. -
Click Grant admin consent for your tenant.
Step 3: Add the app as a D365 user
-
In your D365 Finance environment, go to System administration → Users → New.
-
Set the User ID and User name, then paste the Azure AD Application (client) ID into the Azure AD application field.
-
Assign appropriate security roles and save.
Quickstart
To use the microsoft.dynamics365.finance.customermain connector in your Ballerina application, modify the .bal file as follows:
Step 1: Import the module
import ballerinax/microsoft.dynamics365.finance.customermain;
Step 2: Instantiate a new connector
configurable string tenantId = ?; configurable string clientId = ?; configurable string clientSecret = ?; configurable string serviceUrl = ?; // e.g. "https://<env>.operations.dynamics.com/data" customermain:Client cl = check new ({ config = { auth: { tokenUrl: string `https://login.microsoftonline.com/${tenantId}/oauth2/v2.0/token`, clientId, clientSecret, scopes: [string `${serviceUrl}/.default`] } }, serviceUrl );
Step 3: Invoke the connector operation
customermain:CustomersV2Collection results = check cl->listCustomersV2();
Step 4: Run the Ballerina application
bal run
Examples
The Dynamics 365 Finance Ballerina connectors provide practical examples illustrating usage in various scenarios. Explore these examples.
Clients
microsoft.dynamics365.finance.customermain: Client
Constructor
Gets invoked to initialize the connector.
init (ConnectionConfig config, string serviceUrl)- config ConnectionConfig - The configurations to be used when initializing the
connector
- serviceUrl string "https://your-org.operations.dynamics.com/data" - URL of the target service
listCustomersV2
function listCustomersV2(map<string|string[]> headers, *ListCustomersV2Queries queries) returns CustomersV2Collection|errorList CustomersV2
Parameters
- queries *ListCustomersV2Queries - Queries to be sent with the request
Return Type
- CustomersV2Collection|error - Collection of CustomerV2
createCustomersV2
function createCustomersV2(CustomerV2 payload, map<string|string[]> headers) returns CustomerV2|errorCreate CustomerV2
Parameters
- payload CustomerV2 - The request body
Return Type
- CustomerV2|error - CustomerV2 created
getCustomersV2
function getCustomersV2(string dataAreaId, string customerAccount, map<string|string[]> headers, *GetCustomersV2Queries queries) returns CustomerV2|errorGet CustomerV2 by key
Parameters
- dataAreaId string - The company data area identifier
- customerAccount string - The customer account key field
- queries *GetCustomersV2Queries - Queries to be sent with the request
Return Type
- CustomerV2|error - CustomerV2
deleteCustomersV2
function deleteCustomersV2(string dataAreaId, string customerAccount, DeleteCustomersV2Headers headers) returns error?Delete CustomerV2
Parameters
- dataAreaId string - The company data area identifier
- customerAccount string - The customer account key field
- headers DeleteCustomersV2Headers (default {}) - Headers to be sent with the request
Return Type
- error? - CustomerV2 deleted
updateCustomersV2
function updateCustomersV2(string dataAreaId, string customerAccount, CustomerV2 payload, UpdateCustomersV2Headers headers) returns CustomerV2|errorUpdate CustomerV2
Parameters
- dataAreaId string - The company data area identifier
- customerAccount string - The customer account key field
- payload CustomerV2 - The request body
- headers UpdateCustomersV2Headers (default {}) - Headers to be sent with the request
Return Type
- CustomerV2|error - CustomerV2 updated
listCustomersV3
function listCustomersV3(map<string|string[]> headers, *ListCustomersV3Queries queries) returns CustomersV3Collection|errorList CustomersV3
Parameters
- queries *ListCustomersV3Queries - Queries to be sent with the request
Return Type
- CustomersV3Collection|error - Collection of CustomerV3
createCustomersV3
function createCustomersV3(CustomerV3 payload, map<string|string[]> headers) returns CustomerV3|errorCreate CustomerV3
Parameters
- payload CustomerV3 - The request body
Return Type
- CustomerV3|error - CustomerV3 created
getCustomersV3
function getCustomersV3(string dataAreaId, string customerAccount, map<string|string[]> headers, *GetCustomersV3Queries queries) returns CustomerV3|errorGet CustomerV3 by key
Parameters
- dataAreaId string - The company data area identifier
- customerAccount string - The customer account key field
- queries *GetCustomersV3Queries - Queries to be sent with the request
Return Type
- CustomerV3|error - CustomerV3
deleteCustomersV3
function deleteCustomersV3(string dataAreaId, string customerAccount, DeleteCustomersV3Headers headers) returns error?Delete CustomerV3
Parameters
- dataAreaId string - The company data area identifier
- customerAccount string - The customer account key field
- headers DeleteCustomersV3Headers (default {}) - Headers to be sent with the request
Return Type
- error? - CustomerV3 deleted
updateCustomersV3
function updateCustomersV3(string dataAreaId, string customerAccount, CustomerV3 payload, UpdateCustomersV3Headers headers) returns CustomerV3|errorUpdate CustomerV3
Parameters
- dataAreaId string - The company data area identifier
- customerAccount string - The customer account key field
- payload CustomerV3 - The request body
- headers UpdateCustomersV3Headers (default {}) - Headers to be sent with the request
Return Type
- CustomerV3|error - CustomerV3 updated
Records
microsoft.dynamics365.finance.customermain: ConnectionConfig
Fields
- auth? OAuth2ClientCredentialsGrantConfig - Configurations related to client authentication
- httpVersion HttpVersion(default http:HTTP_2_0) - The HTTP version understood by the client
- http1Settings ClientHttp1Settings(default {}) - Configurations related to HTTP/1.x protocol
- http2Settings ClientHttp2Settings(default {}) - Configurations related to HTTP/2 protocol
- timeout decimal(default 30) - The maximum time to wait (in seconds) for a response before closing the connection
- forwarded string(default "disable") - The choice of setting
forwarded/x-forwardedheader
- followRedirects? FollowRedirects - Configurations associated with Redirection
- poolConfig? PoolConfiguration - Configurations associated with request pooling
- cache CacheConfig(default {}) - HTTP caching related configurations
- compression Compression(default http:COMPRESSION_AUTO) - Specifies the way of handling compression (
accept-encoding) header
- circuitBreaker? CircuitBreakerConfig - Configurations associated with the behaviour of the Circuit Breaker
- retryConfig? RetryConfig - Configurations associated with retrying
- cookieConfig? CookieConfig - Configurations associated with cookies
- responseLimits ResponseLimitConfigs(default {}) - Configurations associated with inbound response size limits
- secureSocket? ClientSecureSocket - SSL/TLS-related options
- proxy? ProxyConfig - Proxy server related options
- socketConfig ClientSocketConfig(default {}) - Provides settings related to client socket configuration
- validation boolean(default true) - Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
- laxDataBinding boolean(default true) - Enables relaxed data binding on the client side. When enabled,
nilvalues are treated as optional, and absent fields are handled asnilabletypes. Enabled by default.
microsoft.dynamics365.finance.customermain: CustomersV2Collection
Fields
- Fields Included from *ODataCollection
- Fields Included from *CustomersV2CollectionAllOf2
- value CustomerV2[]
- anydata...
microsoft.dynamics365.finance.customermain: CustomersV2CollectionAllOf2
Fields
- value? CustomerV2[] -
microsoft.dynamics365.finance.customermain: CustomersV3Collection
Fields
- Fields Included from *ODataCollection
- Fields Included from *CustomersV3CollectionAllOf2
- value CustomerV3[]
- anydata...
microsoft.dynamics365.finance.customermain: CustomersV3CollectionAllOf2
Fields
- value? CustomerV3[] -
microsoft.dynamics365.finance.customermain: CustomerV2
Fields
- personPhoneticLastName? string -
- birthPlace? string -
- giroTypeFreeTextInvoice? PaymentStub -
- giroTypeAccountStatement? PaymentStub -
- primaryContactEmailPurpose? string -
- fiscalCode? string -
- employeeResponsibleNumber? string -
- primaryContactEmail? string -
- taxExemptNumber? string -
- personMiddleName? string -
- invoiceAddressCounty? string -
- isFuelSurchargeApplied? NoYes -
- addressCity? string -
- suframaNumber? string -
- withholdingTaxGroupCode? string -
- panStatus? PANStatusIN -
- isOrderNumberReferenceUsed? NoYes -
- reliefGroupId? string -
- personLastName? string -
- creditRating? string -
- primaryContactFax? string -
- primaryContactLinkedIn? string -
- personAnniversaryDay? Signed32 -
- residenceForeignCountryRegionId? string -
- personProfessionalSuffix? string -
- pANReferenceNumber? string -
- companyType? CompanyTypeMX -
- addressLocationId? string -
- addressCountryRegionId? string -
- deliveryAddressLongitude? decimal -
- personMaritalStatus? DirPersonMaritalStatus -
- totalDiscountCode? string -
- organizationPhoneticName? string -
- salesMemo? string -
- giroTypeCollectionletter? PaymentStub -
- giroType? PaymentStub -
- primaryContactFacebookDescription? string -
- addressZipCode? string -
- receiptOption? RetailReceiptOptionBase -
- federalAgencyLocationCode? string -
- numberSequenceGroup? string -
- stateInscription? string -
- addressBrazilianIE? string -
- isInSuframaRegion? NoYes -
- writeoffReason? string -
- primaryContactURLPurpose? string -
- partyCountry? string -
- transactionPresenceType? EFDocPresenceTypeBR -
- deliveryAddressTimeZone? Timezone -
- brazilianINSSCEI? string -
- isIncomingFiscalDocumentGenerated? NoYes -
- statisticsGroupId? string -
- cURPNumber? string -
- deliveryFreightZone? string -
- primaryContactPhoneIsMobile? NoYes -
- salesCurrencyCode? string -
- isExternallyMaintained? NoYes -
- deliveryTerms? string -
- hasSuframaDiscountPISandCOFINS? NoYes -
- creditLimit? decimal -
- defaultInventoryStatusId? string -
- warehouseId? string -
- multiLineDiscountCode? string -
- merchantID? string -
- invoiceAddressTimeZone? Timezone -
- brazilianIE? string -
- warehouseFulfillmentType? WHSFulfillmentType -
- primaryContactFaxPurpose? string -
- deliveryAddressStreet? string -
- customerPaymentFineCode? string -
- orderEntryDeadline? string -
- foreignerId? string -
- personLastNamePrefix? string -
- salesDistrict? string -
- nAFCode? string -
- primaryContactPhoneDescription? string -
- isPurchRequestUsed? NoYes -
- invoiceAddressDistrictName? string -
- customerGroupId? string -
- primaryContactTwitterDescription? string -
- paymentIdType? string -
- birthCountyCode? string -
- tDSGroup? string -
- personPhoneticMiddleName? string -
- addressValidFrom? string -
- customerWithholdingContributionType? CustWhtContributionTypeBR -
- deliveryAddressDescription? string -
- vendorAccount? string -
- customerAccount? string -
- packingMaterialFeeLicenseNumber? string -
- frenchSiret? string -
- brazilianCNPJOrCPF? string -
- invoiceAddressLatitude? decimal -
- electronicInvoiceEAN? string -
- warehouseIsASNGenerated? NoYes -
- warehouseIsEntireShipmentFilled? NoYes -
- personChildrenNames? string -
- organizationName? string -
- customerRebateGroupId? string -
- addressBooks? string -
- primaryContactURL? string -
- isElectronicInvoice? NoYes -
- invoiceAddressCity? string -
- paymentTermsBaseDays? Signed32 -
- paymentTerms? string -
- addressBrazilianCNPJOrCPF? string -
- personPhoneticFirstName? string -
- personAnniversaryMonth? MonthsOfYear -
- federalComments? string -
- lineDiscountCode? string -
- primaryContactEmailDescription? string -
- itemCustomerGroupId? string -
- primaryContactPhone? string -
- primaryContactTelexDescription? string -
- primaryContactFaxExtension? string -
- isFinalUser? NoYes -
- creditCardAddressVerificationIsAuthorizationVoidedOnFailure? NoYes -
- lineOfBusinessId? string -
- organizationNumberOfEmployees? Signed32 -
- deliveryAddressLatitude? decimal -
- deliveryAddressCountryRegionISOCode? string -
- receiptEmail? string -
- creditCardAddressVerification? CreditCardAddressVerification -
- isTransactionPostedAsShipment? NoYes -
- invoiceAddress? InvoiceOrderAccount -
- isServiceDeliveryAddressBased? NoYes -
- salesAccountNumber? string -
- paymentFactoringAccount? string -
- defaultDimensionDisplayValue? string -
- invoiceAddressStreet? string -
- paymentSpecification? string -
- languageId? string -
- tCSGroup? string -
- deliveryAddressLocationId? string -
- salesSubsegmentId? string -
- salesSegmentId? string -
- organizationNumber? string -
- identificationNumber? string -
- consolidationDay? Signed32 -
- deliveryAddressCountryRegionId? string -
- salesOrderPoolId? string -
- chargesGroupId? string -
- preferentialCustomer? NoYes -
- centralBankPurposeNotes? string -
- primaryContactTwitter? string -
- addressLongitude? decimal -
- primaryContactEmailIsIM? NoYes -
- fulfillmentErrorTolerance? WHSCustFulfillmentErrorTolerance -
- companyChain? string -
- invoiceAddressZipCode? string -
- creditCardAddressVerificationLevel? CreditCardAddressVerificationLevel -
- paymentDay? string -
- invoiceAddressLocationId? string -
- invoiceAddressCountryRegionISOCode? string -
- brazilianNIT? string -
- deliveryAddressCounty? string -
- personFirstName? string -
- brazilianCCM? string -
- customerType? CustomerTypeIN -
- primaryContactTwitterPurpose? string -
- fullPrimaryAddress? string -
- isFreightAccrued? NoYes -
- addressCountryRegionISOCode? string -
- primaryContactLinkedInPurpose? string -
- personProfessionalTitle? string -
- invoiceAddressCountryRegionId? string -
- nameAlias? string -
- isExcludedFromInterestChargeCalculation? NoYes -
- supplementaryItemGroupId? string -
- primaryContactURLDescription? string -
- invoiceAddressValidFrom? string -
- personGender? Gender -
- deliveryAddressCity? string -
- addressLocationRoles? string -
- invoiceAddressValidTo? string -
- siteId? string -
- customerTMAGroupId? string -
- taxRegistrationId? string -
- pANNumber? string -
- addressDescription? string -
- paymentUseCashDiscount? UseCashDisc -
- collectionsContactPersonId? string -
- creditCardCVC? CreditCardCVC -
- primaryContactFacebook? string -
- electronicLocationId? string -
- isWithholdingTaxCalculated? NoYes -
- invoiceAccount? string -
- paymentBankAccount? string -
- exportSale? NoYes -
- addressStreet? string -
- onHoldStatus? CustVendorBlocked -
- packingDutyLicense? string -
- calculateWithholdingTax? NoYes -
- nationalRegistryNumber? string -
- invoiceAddressState? string -
- interCompanyAutoCreateOrders? NoYes -
- destinationCode? string -
- primaryContactPhonePurpose? string -
- invoiceAddressLongitude? decimal -
- deliveryReason? string -
- iRS1099CIndicator? NoYes -
- dataAreaId? string -
- personAnniversaryYear? Signed32 -
- deliveryAddressValidFrom? string -
- primaryContactPhoneExtension? string -
- federalIndicator? FederalNonFederalIndicatorCode -
- salesTaxGroup? string -
- paymentCashDiscount? string -
- commissionCustomerGroupId? string -
- brazilianCNAE? string -
- isOneTimeCustomer? NoYes -
- paymentSchedule? string -
- organizationABCCode? ABC -
- addressTimeZone? Timezone -
- customerPaymentFinancialInterestCode? string -
- personHobbies? string -
- isSalesTaxIncludedInPrices? NoYes -
- giroTypeInterestNote? PaymentStub -
- personInitials? string -
- paymentMethod? string -
- deliveryMode? string -
- deliveryAddressValidTo? string -
- addressValidTo? string -
- deliveryAddressZipCode? string -
- discountPriceGroupId? string -
- accountStatement? CustAccountStatement -
- receiptCalendar? string -
- rFCNumber? string -
- contactPersonId? string -
- knownAs? string -
- primaryContactFacebookPurpose? string -
- creditLimitIsMandatory? NoYes -
- addressCounty? string -
- deliveryAddressDistrictName? string -
- primaryContactLinkedInDescription? string -
- defaultECommerceOperator? string -
- partyState? string -
- centralBankPurposeCode? string -
- salesReturnTaxGroup? string -
- warehouseFulfillmentRate? decimal -
- partyType? string -
- primaryContactTelexPurpose? string -
- foreignCustomer? NoYes -
- invoiceAddressDescription? string -
- addressDistrictName? string -
- giroTypeProjInvoice? PaymentStub -
- partyNumber? string -
- natureOfAssessee? NatureOfAssesseeIN -
- primaryContactFaxDescription? string -
- primaryContactTelex? string -
- isICMSContributor? NoYes -
- isExcludedFromCollectionFeeCalculation? NoYes -
- commissionSalesGroupId? string -
- isExpressBillOfLadingAccepted? NoYes -
- addressState? string -
- deliveryAddressState? string -
- addressLatitude? decimal -
microsoft.dynamics365.finance.customermain: CustomerV3
Fields
- personPhoneticLastName? string -
- birthPlace? string -
- giroTypeFreeTextInvoice? PaymentStub -
- credManGroupId? string -
- warehouseOutboundShipmentProcessingPolicyName? string -
- giroTypeAccountStatement? PaymentStub -
- primaryContactEmailPurpose? string -
- fiscalCode? string -
- employeeResponsibleNumber? string -
- primaryContactEmail? string -
- taxExemptNumber? string -
- personMiddleName? string -
- invoiceAddressCounty? string -
- qMSWillPrintCustomerSpecificCertificateOfAnalysis? NoYes -
- isFuelSurchargeApplied? NoYes -
- addressCity? string -
- suframaNumber? string -
- withholdingTaxGroupCode? string -
- panStatus? PANStatusIN -
- sATRegistrationNameMX? string -
- isOrderNumberReferenceUsed? NoYes -
- reliefGroupId? string -
- credManNotes? string -
- personLastName? string -
- creditRating? string -
- primaryContactFax? string -
- primaryContactLinkedIn? string -
- personAnniversaryDay? Signed32 -
- residenceForeignCountryRegionId? string -
- personProfessionalSuffix? string -
- pANReferenceNumber? string -
- companyType? CompanyTypeMX -
- addressLocationId? string -
- credManLastReviewDate? string -
- addressCountryRegionId? string -
- deliveryAddressLongitude? decimal -
- personMaritalStatus? DirPersonMaritalStatus -
- totalDiscountCode? string -
- organizationPhoneticName? string -
- salesMemo? string -
- giroTypeCollectionletter? PaymentStub -
- giroType? PaymentStub -
- primaryContactFacebookDescription? string -
- addressZipCode? string -
- receiptOption? RetailReceiptOptionBase -
- federalAgencyLocationCode? string -
- numberSequenceGroup? string -
- credManExclude? NoYes -
- primaryContactEmailRecordId? int -
- stateInscription? string -
- addressBrazilianIE? string -
- isInSuframaRegion? NoYes -
- fulfillmentPolicyName? string -
- credManCreditLimitDate? string -
- writeoffReason? string -
- primaryContactURLPurpose? string -
- partyCountry? string -
- addressStreetNumber? string -
- transactionPresenceType? EFDocPresenceTypeBR -
- deliveryAddressTimeZone? Timezone -
- brazilianINSSCEI? string -
- isIncomingFiscalDocumentGenerated? NoYes -
- eInvoiceAttachment? NoYes -
- statisticsGroupId? string -
- cURPNumber? string -
- deliveryFreightZone? string -
- primaryContactPhoneIsMobile? NoYes -
- salesCurrencyCode? string -
- isExternallyMaintained? NoYes -
- deliveryTerms? string -
- hasSuframaDiscountPISandCOFINS? NoYes -
- credManAccountStatusId? string -
- creditLimit? decimal -
- defaultInventoryStatusId? string -
- warehouseId? string -
- multiLineDiscountCode? string -
- merchantID? string -
- invoiceAddressTimeZone? Timezone -
- eInvoiceRegister? NoYes -
- credManWithAgency? NoYes -
- brazilianIE? string -
- qMSCertificateOfAnalysisCustomerGroupId? string -
- isSimplifiedPrimaryAddress? NoYes -
- primaryContactFaxPurpose? string -
- deliveryAddressStreet? string -
- customerPaymentFineCode? string -
- orderEntryDeadline? string -
- foreignerId? string -
- personLastNamePrefix? string -
- salesDistrict? string -
- nAFCode? string -
- addressRecordId? int -
- primaryContactPhoneDescription? string -
- isPurchRequestUsed? NoYes -
- invoiceAddressDistrictName? string -
- customerGroupId? string -
- primaryContactTwitterDescription? string -
- paymentIdType? string -
- birthCountyCode? string -
- tDSGroup? string -
- personPhoneticMiddleName? string -
- addressValidFrom? string -
- customerWithholdingContributionType? CustWhtContributionTypeBR -
- credManCustUnlimitedCredit? NoYes -
- deliveryAddressBuildingComplement? string -
- deliveryAddressDescription? string -
- foreignResident? NoYes -
- vendorAccount? string -
- customerAccount? string -
- credManBusinessStarted? string -
- packingMaterialFeeLicenseNumber? string -
- frenchSiret? string -
- brazilianCNPJOrCPF? string -
- invoiceAddressLatitude? decimal -
- electronicInvoiceEAN? string -
- warehouseIsASNGenerated? NoYes -
- warehouseIsEntireShipmentFilled? NoYes -
- personChildrenNames? string -
- organizationName? string -
- customerRebateGroupId? string -
- credManStatusReasonId? string -
- addressBooks? string -
- primaryContactURL? string -
- isElectronicInvoice? NoYes -
- invoiceAddressCity? string -
- paymentTermsBaseDays? Signed32 -
- paymentTerms? string -
- invoiceAddressStreetNumber? string -
- addressBrazilianCNPJOrCPF? string -
- personPhoneticFirstName? string -
- personAnniversaryMonth? MonthsOfYear -
- credManCustomerSince? string -
- federalComments? string -
- lineDiscountCode? string -
- primaryContactEmailDescription? string -
- itemCustomerGroupId? string -
- collectionLetterCode? CustCollectionLetterCode -
- isAllowCreateIndirectOrderLines? NoYes -
- primaryContactPhone? string -
- primaryContactTelexDescription? string -
- primaryContactFaxExtension? string -
- isFinalUser? NoYes -
- creditCardAddressVerificationIsAuthorizationVoidedOnFailure? NoYes -
- lineOfBusinessId? string -
- organizationNumberOfEmployees? Signed32 -
- deliveryAddressLatitude? decimal -
- deliveryAddressCountryRegionISOCode? string -
- receiptEmail? string -
- creditCardAddressVerification? CreditCardAddressVerification -
- isTransactionPostedAsShipment? NoYes -
- overrideSalesTax? NoYes -
- invoiceAddress? InvoiceOrderAccount -
- isServiceDeliveryAddressBased? NoYes -
- salesAccountNumber? string -
- paymentFactoringAccount? string -
- defaultDimensionDisplayValue? string -
- invoiceAddressStreet? string -
- paymentSpecification? string -
- languageId? string -
- tCSGroup? string -
- deliveryAddressLocationId? string -
- salesSubsegmentId? string -
- salesSegmentId? string -
- organizationNumber? string -
- identificationNumber? string -
- consolidationDay? Signed32 -
- deliveryAddressCountryRegionId? string -
- salesOrderPoolId? string -
- credManCreditLimitExpiryDate? string -
- chargesGroupId? string -
- preferentialCustomer? NoYes -
- centralBankPurposeNotes? string -
- primaryContactTwitter? string -
- addressLongitude? decimal -
- isPublicSectorIT? NoYes -
- primaryContactEmailIsIM? NoYes -
- companyChain? string -
- credManEligibleCreditLimitDate? string -
- invoiceAddressZipCode? string -
- creditCardAddressVerificationLevel? CreditCardAddressVerificationLevel -
- paymentDay? string -
- invoiceAddressLocationId? string -
- invoiceAddressCountryRegionISOCode? string -
- brazilianNIT? string -
- deliveryAddressCounty? string -
- personFirstName? string -
- brazilianCCM? string -
- customerType? CustomerTypeIN -
- primaryContactTwitterPurpose? string -
- fullPrimaryAddress? string -
- isFreightAccrued? NoYes -
- addressCountryRegionISOCode? string -
- primaryContactLinkedInPurpose? string -
- personProfessionalTitle? string -
- invoiceAddressCountryRegionId? string -
- nameAlias? string -
- isExcludedFromInterestChargeCalculation? NoYes -
- addressPostbox? string -
- supplementaryItemGroupId? string -
- primaryContactURLDescription? string -
- invoiceAddressValidFrom? string -
- personGender? Gender -
- deliveryAddressCity? string -
- addressLocationRoles? string -
- qMSApprovedCustomerGroupId? string -
- invoiceAddressValidTo? string -
- siteId? string -
- customerTMAGroupId? string -
- taxRegistrationId? string -
- pANNumber? string -
- addressDescription? string -
- credManTitleHeld? NoYes -
- primaryContactPhoneRecordId? int -
- paymentUseCashDiscount? UseCashDisc -
- collectionsContactPersonId? string -
- creditCardCVC? CreditCardCVC -
- primaryContactFacebook? string -
- electronicLocationId? string -
- isWithholdingTaxCalculated? NoYes -
- cFDITemporaryExportMX? NoYes -
- invoiceAccount? string -
- paymentBankAccount? string -
- exportSale? NoYes -
- addressStreet? string -
- onHoldStatus? CustVendorBlocked -
- deliveryAddressStreetNumber? string -
- packingDutyLicense? string -
- taxRegimeCodeMX? string -
- calculateWithholdingTax? NoYes -
- nationalRegistryNumber? string -
- credManNextSchedReviewDate? string -
- invoiceAddressState? string -
- isSimplifiedInvoiceAddress? NoYes -
- interCompanyAutoCreateOrders? NoYes -
- destinationCode? string -
- primaryContactPhonePurpose? string -
- invoiceAddressLongitude? decimal -
- deliveryReason? string -
- iRS1099CIndicator? NoYes -
- dataAreaId? string -
- personAnniversaryYear? Signed32 -
- deliveryAddressValidFrom? string -
- primaryContactPhoneExtension? string -
- federalIndicator? FederalNonFederalIndicatorCode -
- salesTaxGroup? string -
- primaryContactFaxRecordId? int -
- paymentCashDiscount? string -
- commissionCustomerGroupId? string -
- qMSApprovedCustomerListCheckMethod? QMSCustomerCheckItem -
- invoiceAddressBuildingComplement? string -
- credManCustCreditMaxAlt? decimal -
- brazilianCNAE? string -
- isOneTimeCustomer? NoYes -
- addressBuildingComplement? string -
- paymentSchedule? string -
- priority? MCRSOAllocPriority -
- organizationABCCode? ABC -
- addressTimeZone? Timezone -
- customerPaymentFinancialInterestCode? string -
- personHobbies? string -
- isSalesTaxIncludedInPrices? NoYes -
- giroTypeInterestNote? PaymentStub -
- personInitials? string -
- custClassificationId? string -
- paymentMethod? string -
- deliveryMode? string -
- deliveryAddressValidTo? string -
- addressValidTo? string -
- deliveryAddressZipCode? string -
- discountPriceGroupId? string -
- accountStatement? CustAccountStatement -
- authorityOffice? string -
- credManEligibleCreditMax? decimal -
- receiptCalendar? string -
- rFCNumber? string -
- contactPersonId? string -
- knownAs? string -
- primaryContactFacebookPurpose? string -
- credManEligibleCreditLimitCurrency? string -
- creditLimitIsMandatory? NoYes -
- addressCounty? string -
- deliveryAddressDistrictName? string -
- primaryContactLinkedInDescription? string -
- defaultECommerceOperator? string -
- partyState? string -
- centralBankPurposeCode? string -
- salesReturnTaxGroup? string -
- credManCollectionGroupId? string -
- primaryContactURLRecordId? int -
- partyType? string -
- primaryContactTelexPurpose? string -
- allowOnAccount? NoYes -
- foreignCustomer? NoYes -
- invoiceAddressDescription? string -
- addressDistrictName? string -
- giroTypeProjInvoice? PaymentStub -
- isSimplifiedDeliveryAddress? NoYes -
- partyNumber? string -
- invoicePostingType? SalesInvoicePostingTypeRU -
- natureOfAssessee? NatureOfAssesseeIN -
- primaryContactFaxDescription? string -
- primaryContactTelex? string -
- isICMSContributor? NoYes -
- isExcludedFromCollectionFeeCalculation? NoYes -
- commissionSalesGroupId? string -
- isExpressBillOfLadingAccepted? NoYes -
- addressState? string -
- deliveryAddressState? string -
- addressLatitude? decimal -
microsoft.dynamics365.finance.customermain: DeleteCustomersV2Headers
Represents the Headers record for the operation: deleteCustomersV2
Fields
- ifMatch? string - ETag value for optimistic concurrency; prevents overwriting concurrent modifications
microsoft.dynamics365.finance.customermain: DeleteCustomersV3Headers
Represents the Headers record for the operation: deleteCustomersV3
Fields
- ifMatch? string - ETag value for optimistic concurrency; prevents overwriting concurrent modifications
microsoft.dynamics365.finance.customermain: GetCustomersV2Queries
Represents the Queries record for the operation: getCustomersV2
Fields
- expand? string - OData $expand query parameter - comma-separated list of related entities to include
- 'select? string - OData $select query parameter - comma-separated list of fields to return
microsoft.dynamics365.finance.customermain: GetCustomersV3Queries
Represents the Queries record for the operation: getCustomersV3
Fields
- expand? string - OData $expand query parameter - comma-separated list of related entities to include
- 'select? string - OData $select query parameter - comma-separated list of fields to return
microsoft.dynamics365.finance.customermain: ListCustomersV2Queries
Represents the Queries record for the operation: listCustomersV2
Fields
- skip? int - OData $skip query parameter - number of records to skip
- top? int - OData $top query parameter - maximum number of records to return
- filter? string - OData $filter query parameter - filter expression
- orderby? string - OData $orderby query parameter - sort order expression
- expand? string - OData $expand query parameter - comma-separated list of related entities to include
- crossCompany? boolean - When true, query results include records from all companies
- count? boolean - When true, the response includes the total count of matching records
- 'select? string - OData $select query parameter - comma-separated list of fields to return
microsoft.dynamics365.finance.customermain: ListCustomersV3Queries
Represents the Queries record for the operation: listCustomersV3
Fields
- skip? int - OData $skip query parameter - number of records to skip
- top? int - OData $top query parameter - maximum number of records to return
- filter? string - OData $filter query parameter - filter expression
- orderby? string - OData $orderby query parameter - sort order expression
- expand? string - OData $expand query parameter - comma-separated list of related entities to include
- crossCompany? boolean - When true, query results include records from all companies
- count? boolean - When true, the response includes the total count of matching records
- 'select? string - OData $select query parameter - comma-separated list of fields to return
microsoft.dynamics365.finance.customermain: OAuth2ClientCredentialsGrantConfig
OAuth2 Client Credentials Grant Configs
Fields
- Fields Included from *OAuth2ClientCredentialsGrantConfig
- tokenUrl string(default "https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token") - Token URL
microsoft.dynamics365.finance.customermain: ODataCollection
Fields
- odataNextLink? string -
- odataCount? int -
- odataContext? string -
microsoft.dynamics365.finance.customermain: UpdateCustomersV2Headers
Represents the Headers record for the operation: updateCustomersV2
Fields
- ifMatch? string - ETag value for optimistic concurrency; prevents overwriting concurrent modifications
microsoft.dynamics365.finance.customermain: UpdateCustomersV3Headers
Represents the Headers record for the operation: updateCustomersV3
Fields
- ifMatch? string - ETag value for optimistic concurrency; prevents overwriting concurrent modifications
Union types
microsoft.dynamics365.finance.customermain: CreditCardAddressVerification
CreditCardAddressVerification
microsoft.dynamics365.finance.customermain: Quarter
Quarter
microsoft.dynamics365.finance.customermain: DirPersonMaritalStatus
DirPersonMaritalStatus
microsoft.dynamics365.finance.customermain: CustWhtContributionTypeBR
CustWhtContributionTypeBR
microsoft.dynamics365.finance.customermain: QMSCustomerCheckItem
QMSCustomerCheckItem
microsoft.dynamics365.finance.customermain: WHSCustFulfillmentErrorTolerance
WHSCustFulfillmentErrorTolerance
microsoft.dynamics365.finance.customermain: MCRSOAllocPriority
MCRSOAllocPriority
microsoft.dynamics365.finance.customermain: SalesInvoicePostingTypeRU
SalesInvoicePostingTypeRU
microsoft.dynamics365.finance.customermain: ABC
ABC
microsoft.dynamics365.finance.customermain: CustVendorBlocked
CustVendorBlocked
microsoft.dynamics365.finance.customermain: NatureOfAssesseeIN
NatureOfAssesseeIN
microsoft.dynamics365.finance.customermain: WHSFulfillmentType
WHSFulfillmentType
microsoft.dynamics365.finance.customermain: RetailReceiptOptionBase
RetailReceiptOptionBase
microsoft.dynamics365.finance.customermain: PaymentStub
PaymentStub
microsoft.dynamics365.finance.customermain: MonthsOfYear
MonthsOfYear
microsoft.dynamics365.finance.customermain: EFDocPresenceTypeBR
EFDocPresenceTypeBR
microsoft.dynamics365.finance.customermain: Timezone
Timezone
microsoft.dynamics365.finance.customermain: CustCollectionLetterCode
CustCollectionLetterCode
microsoft.dynamics365.finance.customermain: CreditCardAddressVerificationLevel
CreditCardAddressVerificationLevel
microsoft.dynamics365.finance.customermain: CompanyTypeMX
CompanyTypeMX
microsoft.dynamics365.finance.customermain: CustomerTypeIN
CustomerTypeIN
microsoft.dynamics365.finance.customermain: PANStatusIN
PANStatusIN
microsoft.dynamics365.finance.customermain: Gender
Gender
microsoft.dynamics365.finance.customermain: FederalNonFederalIndicatorCode
FederalNonFederalIndicatorCode
microsoft.dynamics365.finance.customermain: UseCashDisc
UseCashDisc
microsoft.dynamics365.finance.customermain: CustAccountStatement
CustAccountStatement
microsoft.dynamics365.finance.customermain: InvoiceOrderAccount
InvoiceOrderAccount
microsoft.dynamics365.finance.customermain: NoYes
NoYes
microsoft.dynamics365.finance.customermain: CreditCardCVC
CreditCardCVC
Import
import ballerinax/microsoft.dynamics365.finance.customermain;Other versions
0.8.0
Metadata
Released date: 2 days ago
Version: 0.8.0
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: 2201.13.0
GraalVM compatible: Yes
Pull count
Total: 2
Current verison: 2
Weekly downloads
Keywords
Name/Microsoft Dynamics 365 Finance Customer Main
Area/Accounts Receivable
Vendor/Microsoft
Dynamics365
Finance
ERP
Type/Connector
Customer
AccountsReceivable
AR
Contributors