Forum Discussion

lars_lindman's avatar
11 years ago

Calling functions in Script extension

Hi!

Is it possible to call a function that is located in a script extension?

I have tried using  Runner.CallMethod,but for me that only worked if the function was in i UNIT. What I`m looking for is to call a function like this: Runner.CallMethod("namespace.class.function").

/Lars

1 Reply

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Hi Lars,



    Only functions exposed using script extension configuration file (description.xml) can be called from the script.

    Considering that the script extension is a zip archive, you can unpack it, modify configuration file according to your needs and pack it back.

    See TC documentation for more details on script extensions.