You are viewing limited content. For full access, please sign in.

Question

Question

Adding the Library the LogMessage VB Function

asked on November 7, 2024

I am writing a Workflow script to get the Last Mod Date of an entry id and it wants to use a function called "LogMessage" How do I add the library that contains this function to Workflow?

 

0 0

Replies

replied on November 7, 2024 Show version history

I'm not sure what you mean by " it wants to use a function called "LogMessage"", that is not a function that Workflow uses. If that is from some 3rd party library, you can add that library as a reference from the References node in the top right section of the left pane (Project Explorer).

There are 2 way of recording messages during a script's execution. You can add messages boxes for testing the script from the Designer or you can use WorkflowAPI to record messages in the instance details at runtime. Look at the TrackInformation, TrackWarning and TrackError methods.

  Protected Overrides Sub Execute()
            'Write your code here.
            MsgBox("This only displays when testing this script from the Workflow Designer")
            WorkflowApi.TrackInformation("Hello World!")
            WorkflowApi.TrackWarning("Warning! something unexpected but non-terminal happened.")
            WorkflowApi.TrackError("Something really bad happened, terminating the script now!")
        End Sub

3 0
replied on November 8, 2024

Will those options allow the use of Last Mod Date as a token?

0 0
replied on November 8, 2024

Yes.

 

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.