Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
nstevelmans
in reply to: ccoomes

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