Interface CCS DIS Partner Transport
interface "CCS DIS Partner Transport"
Methods
Receive
public "CCS DIS Partner Transport" Receive(Partner: Record "CCS DIS Partner"; PartnerMapping: Record "CCS DIS Partner Mapping"): Boolean
Implement this procedure to receive all messages from the partner.
In most cases the receive will already take place while sending. For those scenarios, the receive will do nothing.
Use this procedure to receive message for example from a directory, which doesn't happen automatically.
Set the messages to status "imported" or set already to "read".
Wrap your receiving into a TryFunction.
Return 'false' if an error occured to stop further processing.
Parameters
Name | Type | Description |
---|---|---|
Partner | Record "CCS DIS Partner" |
The partner to identify target configuration. |
PartnerMapping | Record "CCS DIS Partner Mapping" |
The executed partner mapping to define the received messages. |
Return Value
Boolean
Return true if all messages were successfully received, return false on error.
Send
public "CCS DIS Partner Transport" Send(Partner: Record "CCS DIS Partner"; var SentMessage: Record "CCS DIS Partner Sent Message"): Boolean
Implement this procedure to send the message to the partner.
Wrap your sending into a TryFunction.
Return 'false' if an error occured and leave the GetLastErrorMessage with further details for the sent message.
The sending error will be added to the SentMessage by the Data Integration Framework code.
Parameters
Name | Type | Description |
---|---|---|
Partner | Record "CCS DIS Partner" |
The partner to identify target configuration. |
SentMessage | Record "CCS DIS Partner Sent Message" |
The message to read the data from for sending. |
Return Value
Boolean
Return true if the message was successfully send, return false on error.