VBScript - trying to retrieve the full file name from a "For Each File" activity in a workflow into a vbscript. Not sure on writing the script on the classes to use...
I need help on Dim the variable
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Data.SqlClient
Imports System.Text
Imports System.IO
Imports Laserfiche.Workflow.Activities.ForEach.Controllers
Namespace WorkflowActivity.Scripting.Script
'''<summary>
'''Provides one or more methods that can be run when the workflow scripting activity is performed.
'''</summary>
Public Class Script1
Inherits ScriptClass90
'''<summary>
'''This method is run when the activity is performed.
'''</summary>
Protected Overrides Sub Execute()
'Write your code here.
dim FileName as Laserfiche.Workflow.Activities.ForEach.TokenValueInformation = GetTokenValue("ForEachFile_CurrentFile_Full Name")
file.delete(FileName)
End Sub
End Class
End Namespace