DigitalCustomers.SendCustomerCorrelations Method
Public Function SendCustomerCorrelations( _
ByVal correlation As Correlation, _
Optional ByVal GreekErrors As Boolean = False _
) As String
This language is not supported or no code example is available.
Parameters
- correlation
- Correlation
Customer's correlation data, type of Correlation
- GreekErrors
- bool
Determines if the error will be returned in Greek or not.
Return Value
stringIf the invoice is successfully sent, it returns the Correlation ID; otherwise, it returns errors so that they can be handled properly.
// The following example sends a new Customer correlation to Digital Customer Base var dgc = new DigitalCustomers("AADEUserID", "OcpApimSubscriptionKey", "EntityVatNumber", "Arbitrans User", "Arbitrans Key", false); DigitalCustomers.Correlation cust = dgc.newCorrelation; DigitalCustomers.FIMData FIMData = cust.FIM; cust.invoiceMark = 400000000000001L; cust.FIM = (object)null; cust.customerID = 100000000000001L; // To send a correlation with FIM data, use the following code: // cust.invoiceMark = (object)null; // FIMData.number = "DLD999999999" // FIMData.aa = 127 // FIMData.issueDate = DateTime.Now // cust.FIM = FIMData // cust.customerID = 100000000000001L string Result = dgc.SendCustomerCorrelations(cust);
This language is not supported or no code example is available.
'The following example sends a new Customer correlation to Digital Customer Base Dim dgc as DigitalCustomers = new DigitalCustomers("AADEUserID", "OcpApimSubscriptionKey", "EntityVatNumber", "Arbitrans User", "Arbitrans Key", False) Dim cust as DigitalCustomers.Correlation = dgc.newCorrelation Dim FIMData As DigitalCustomers.FIMData = cust.FIM cust.invoiceMark = 400000000000001 cust.FIM = Nothing cust.customerID = 100000000000001 'To send a correlation with FIM data, use the following code: 'cust.invoiceMark = Nothing 'FIMData.number = "DLD999999999" 'FIMData.aa = 127 'FIMData.issueDate = DateTime.Now 'cust.FIM = FIMData 'cust.customerID = 100000000000001 Dim Result as String = dgc.SendCustomerCorrelations(cust)
This language is not supported or no code example is available.