Training
Module
Receive orders in Dynamics 365 Business Central - Training
Do you want to learn how to receive items in the warehouse? This module explains how you can receive one or multiple orders at once.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
After you create and initialize your connection, you can receive information from the specified logical unit (LU). The primary way of receiving information with Session Integrator is with the SessionLU0.Receive
method.
After sending and receiving messages, you must disconnect from your Session Integrator session.
Use SessionLU0.Receive and SessionLU0data
to wait for data from the LU.
Receive
allows you to pass the maximum length of time to wait for information, as well as whether you want to send an automatic acknowledgement. Receive
returns a SessionLU0Data
object.
The following code example demonstrates how to receive information with Session Integrator for LU0.
private void CreateSession_Click(object sender, EventArgs e)
{
try
{
LUName.Text = LUName.Text.Trim();
if (LUName.Text.Length == 0)
{
MessageBox.Show("You must fill out the LU or Pool Name");
return;
}
_session = new SessionLU0(); _session.Connect("LogicalUnitName=" + LUName.Text, SessionLU0InitType.SSCP);
// Receive the logon screen.
SessionLU0Data receivedData = _session.Receive(20000, true); // Trace out the received data.
TraceData(false, receivedData.Data, receivedData.Indication);
// Disable every button and text box.
DisableEverything();
// Insert User/Password.
EnableInsertUserId();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
For more information about the code sample, see Session Integrator for LU0 Code Example.
How to Terminate a Connection with Session Integrator for LU0
Session Integrator for LU0
Session Integrator for LU0 Code Example
IcomLU0 Interface
Training
Module
Receive orders in Dynamics 365 Business Central - Training
Do you want to learn how to receive items in the warehouse? This module explains how you can receive one or multiple orders at once.