The Lasernet server and Dynamics 365 for F&O communicate via Azure storage. Part of the installation process of Lasernet within the system is to set up Connections. Connections ensure that the XML's generated in AX are sent to the Lasernet server for processing and the PDF's and XML's generated from the Lasernet server can be archived in the Lasernet connector.
This document details the procedures to set up 2 Lasernet connections. The first is for archiving PDF's and XML's in the Lasernet connector archive. The second is for sending the XML's to the Lasernet server.
In order to set up the Lasernet connection to the Lasernet server, you will need the Azure service bus and queue. If you wish to archive, you will need to set up another Lasernet connection which will need a connection string. You will also need an environment name set up in Lasernet > Setup > Administration > Environments.
1. Go to Lasernet > Setup > Parameters > Performance > Connection and copy the entire connections string.
2. Go to Lasernet > Setup > Administration > Connections.
3. First, we will create the Azure Storage connection to archive. Select New on the action pane. Give your connection a name in Connection id. Select Storage for Connection type, select the correct Environment id, select Azure storage for the Type, paste your connection string in the Connection string field, and lastly, select lasernet from the Instance name dropdown.
4. Select the Validate button on the action pane. The system will try to add and delete a file from the library to test it. Validation has succeeded.
5. Next, we will create the Azure Service Bus connection to send XML's to the Lasernet server. Select New on the action pane. Give your connection a name in Connection id. Select Azure service bus queue for Connection type, select the correct Environment id, paste your connection string in the Connection string field, and lastly, select the correct queue from the Queue name dropdown. Validate the new connection using the Validate function on the action pane again.
Note: The Azure service bus queue connection string can be retrieved from the Azure portal. It is the Primary Connection String.
6. Lastly, go to Lasernet > Setup > Administration > Lasernet Server and configure your Lasernet server. Select the Azure service bus connection as the Outgoing connection, select the Azure storage connection as the Dynamics connection to storage, and select the name of the Azure storage which has been configured within the Lasernet developer in the Lasernet Azure connection name field.
Note: At initial installation you will now need to select Update data from the action pane to receive data from the Lasernet server.