How to run VBscript in Workfusion?

I have a problem to run SAP automatically with Workfusion.
SAP supports vbscript function, so I can get vbscript from SAP.
But I don’t know how to run vbscript on Workfusion.

Please give me a sample to run vbscript.

Hi Bongki, which SAP application are you using? Also, share the vbscript that you want to run.

If Not IsObject(application) Then
Set SapGuiAuto = GetObject(“SAPGUI”)
Set application = SapGuiAuto.GetScriptingEngine
End If
If Not IsObject(connection) Then
Set connection = application.Children(0)
End If
If Not IsObject(session) Then
Set session = connection.Children(0)
End If
If IsObject(WScript) Then
WScript.ConnectObject session, “on”
WScript.ConnectObject application, “on”
End If
session.findById(“wnd[0]/tbar[0]/okcd”).text = “se11”
session.findById(“wnd[0]”).sendVKey 0

Here is the VBscript code that I want to use.
It is not special code.

Can you tell me what to do…?

@JBK Do you want to run it in RPA Express or SPA, please specify.

I want to run it in RPA Express with Custom Actions - script function.

@JBK you cannot use it in custom script action.
You can try writing a bot task in the WF Studio to execute it, but we don’t have a sample script.

You can find the documentation for Studio via Help - Help contents (“Code” perspective).