07-09-2024
05:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-09-2024
05:36 AM
You can using this code. You should insert the parameters you want to search.
mSearchParams.Add("Name", "YourNameWithExtension")
'Build one to many name/value pairs of Property/Value as search criteria Dim mSearchParams As New System.Collections.Generic.Dictionary(Of String, String) 'add UDP.DisplayName, Value Pairs mSearchParams.Add("Name", "YourNameWithExtension") 'returns full file name in local working folder (download enforces override, if local file exists) mVaultFile = iLogicVault.GetFileBySearchCriteria(mSearchParams, True, True) ', True: combine search criteria by AND; , , True: check-out If mVaultFile Is Nothing Then Logger.Error("Vault file search: File not found - Please double check that file can be found with search criteria applied.") Else Logger.Info("File " & mVaultFile & " found by search and downloaded to local workspace.") 'add next action using the downloaded file here, e.g. Component.Replace("Part1:1", mVaultFile, True) End If