Hi all,
I want to setup VBScript to a scheduler that performs a quick refresh on external objects at given intervals.
Does anyone have some examples or guidance on how to do this?
Best Regards,
Conny
' Initialize the MFilesClientApplication object.
Dim oClientApp: Set oClientApp = CreateObject("MFilesAPI.MFilesClientApplication")
' Log into a vault through a document vault connection "Your Vault".
Dim oVault: Set oVault = oClientApp.BindToVault("Your Vault", 0, true, false)
'0 = MFExternalDBRefreshTypeNone No refresh is performed.
'1 = MFExternalDBRefreshTypeQuick The quick refresh searches for new items and imports them to M-Files.
'2 = MFExternalDBRefreshTypeFull The full refresh updates all the changes. This operation can take several minutes.
oVault.ObjectTypeOperations.RefreshExternalObjectType 102, 1 'where "102" is the object ID that you want refreshed and "1" is quick refresh.
' Initialize the MFilesClientApplication object.
Dim oClientApp: Set oClientApp = CreateObject("MFilesAPI.MFilesClientApplication")
' Log into a vault through a document vault connection "Your Vault".
Dim oVault: Set oVault = oClientApp.BindToVault("Your Vault", 0, true, false)
'0 = MFExternalDBRefreshTypeNone No refresh is performed.
'1 = MFExternalDBRefreshTypeQuick The quick refresh searches for new items and imports them to M-Files.
'2 = MFExternalDBRefreshTypeFull The full refresh updates all the changes. This operation can take several minutes.
oVault.ObjectTypeOperations.RefreshExternalObjectType 102, 1 'where "102" is the object ID that you want refreshed and "1" is quick refresh.
© 2025 M-Files, All Rights Reserved.