- Print
- PDF
Cloud Print Connector: Data Refresh Best Practices
This section shows the best practices to follow for Lasernet Cloud Print Connector settings after a Dynamics 365 Finance and Operations database refresh from Production to a Sandbox environment.
Note
The following steps all occur in SandBox, no changes are made in Production.
Prerequisites
You must have separate and valid Azure service buses and Azure storages for Sandbox and Production cloud printing. These can be found in Lasernet > Setup > Administration > Connection.
In SandBox, export Lasernet backup with Lasernet Azure parameters and Azure On-Premise User mapping.
Navigate to Lasernet > Common > Backup > Export Lasernet Backup.
Select the Endpoint type from the dropdown.
Ensure that Lasernet Azure Parameters and Azure On-premises user mapping are selected.
Steps in Sandbox environment
After a DB refresh from Production to Sandbox:
Navigate to Lasernet > Setup > Cloud Printer setup > User Setup.
Select Delete Locally on the Azure User mapping for Production’s cloud printing. This will delete the mapping details in the Sandbox environment but will not affect the queue in Azure or Production.
Warning
Do not select Delete, as this will remove the Azure user mapping in Azure.
Navigate to Lasernet > Setup > Cloud print connector > Parameters and replace the Azure Storage Connection-string Connection (A) with the SandBox environment's Azure Connection String Connection.
Select Validate Connection string (B).
Replace the Azure Service Bus Connection-string Connection (A) with the Sandbox environment's Azure Service bus connection string Connection.
Select Validate Service Bus Connection String (B).
The SandBox cloud parameters are no longer connected to the Production Azure storage and Azure service bus for cloud printing.
Clean up the printer list in Sandbox by going to Lasernet > Setup > Lists > Printers. Select all the cloud printers and select Delete on the top menu. These printers are associated with the Production Azure storage and Azure service bus.
To bring back the SandBox cloud printing setups, import the Lasernet backup from Sandbox from the prerequisites section.
To update the printer list, navigate to Lasernet > Setup > Lists > Printers and select Download Lasernet Cloud printers.
On the dialog that pops up, select All for field All/User and select Ok.
Note
If the printer list does not update with the cloud printers for SandBox, enable Keep last printer info in Azure on the Download Lasernet Cloud Printers Dialog. This will delete all data in Azure except for the newest printer information for each Cloud print Connector ID.
Now the cloud print settings and printers have been updated in SandBox.
Important notes
Revoke: revokes the Azure permissions for the selected record, which makes the connection-strings in the previously downloaded CPC configuration useless. Do not select Revoke twice consecutively. This will result in the queue getting deleted in Azure.
Reinstate: re-applies the Azure permissions.
Delete: attempts to delete the queues/blobs in Azure associated with the selected record. It is followed by a local delete (when Azure delete was successful), or simply marking the record as deleted (when Azure delete was unsuccessful).
Delete locally: was added in Lasernet FO Connector 6.1.0.3, and it deletes the record in the current environment, without impacting anything in Azure or any other Dynamics 365 Finance and Operations environment.