07-09-2024
07:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-09-2024
07:03 AM
Hi this is working for me.
'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("Description", "Teststep") 'applies to file 001002.ipt '...add as many as required to enable a unique search result 'returns full file name in local working folder (download enforces override, if local file exists) Dim mVaultFile = iLogicVault.GetFileBySearchCriteria(mSearchParams, True, True) 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