Mattersphere Developers Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
avatar
Lynne Harding
Posts : 335
Join date : 2018-12-20

Document Save Empty Document Save

Tue 31 Mar 2020 - 8:38
We have an in-house developed application that we use to create clients and matters. This data is then imported into Matter Centre using SQL jobs.We want to send out “welcome packs” to all new clients and “follow-up letters” to callers whose calls are classified as leads. As we use Matter Centre as a document management system, is it possible to save documents in the Matter Centre folders without using the Document Save Wizard, as this has to be an automated process?
avatar
Lynne Harding
Posts : 335
Join date : 2018-12-20

Document Save Empty Re: Document Save

Tue 31 Mar 2020 - 8:39
There isn't a way of storing documents via the API that is 100% UI free. There is a class FWBS.OMS.UI.Windows.DocumentManagement.ImportDocumentCommand that resides in OMS.UI.dll (there's the clue to not being UI free).
Given the correct settings it will save without the UI unless it needs some input in which case it will try and launch the save wizard. The following is pseudo code:
FWBS.OMS.UI.Windows.DocumentManagementImportDocumentCommand importer = new FWBS.OMS.UI.Windows.DocumentManagementImportDocumentCommand(); importer.FileName = “FullPathAndFileName”;
importer.ToAssociate = AnyAssociateOnTheMatter;

FWBS.OMS.UI.Windows.SaveSettings settings = new FWBS.OMS.UI.Windows.SaveSettings(); settings.Printing.Mode = PrecPrintMode.None;
settings.Mode = PrecSaveMode.Quick;

importer.Settings= settings; importer.Execute();

Back to top
Permissions in this forum:
You cannot reply to topics in this forum