Call COM method
Create a COM object by its ProgID and call a method or read or set a property (Windows), optionally through a path of properties.
Command in the .NET, Java and COM toolkit · id ooa.dotnet/call_com_method · 8 inputs (2 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Prog ID | String | Yes | ProgID of the COM class. | |
| Path | List | No | Properties to go through first, in order, e.g. Workbooks then Item. | |
| Member | String | Yes | Method or property name. | |
| Kind | String | No | method | Call a method, read a property, or set one (its value is the last argument). |
| Arguments | List | No | Arguments in order. | |
| Quit | Boolean | No | false | Call the object's Quit method at the end (Office applications). |
| Timeout (seconds) | Number | No | 120 | Stop the call after this many seconds. |
| Fail on error | Boolean | No | true | Fail the step when the code throws; when off, the error goes to 'error' and the run goes on. |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | Any | What the method or property returned (objects as text). |
| output | String | Anything written to the console. |
| error | String | The error, when fail on error is off. |