The M-Files Community will be updated on Tuesday, April 2, 2024 at 10:00 AM EST / 2:00 PM GMT and the update is expected to last for several hours. The site will be unavailable during this time.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Sen document ID from workflow to vault extension method

Hello

I have created new vault extension method:

[VaultExtensionMethod("MyVaultExtensionMethod", RequiredVaultAccess = MFVaultAccess.MFVaultAccessNone)]
private string MyVaultExtensionMethod(EventHandlerEnvironment env)
{

string docName = env.Input;

}

And I am calling that method from WF with VBScript:

Dim szDocName
szDocName = PropertyValues.SearchForProperty(0).TypedValue.DisplayValue


Dim strOutput
strOutput = Vault.ExtensionMethodOperations.ExecuteVaultExtensionMethod("MyVaultExtensionMethod", szDocName)

And that works great, I can read document name.

How do I pass Document ID to that method (instead document name) from VBScript? 

How can I send both (ID and name)?