I can not include my compute module functions in an OSDK application. I can include them in a functions repo, but this defeats the purpose of using compute modules. Compute module functions need the ability to be invoked directly and packaged in OSDK apps just like other actions and functions.
Can this be done after creating the compute module?
Yes you can switch the CM functions from a global API to a ontology bound API name via the following steps:
- Open your Compute Module
- Navigate to the functions tab
- Select the function you want to access in the OSDK
- Make sure “IncludeAPI” is selected
- Under “Advanced Configuration” uncheck “Switch to Global API names”
- Select an ontology to publish your functions to
- Hit “update” to apply the changes
Warning: if you were previously using this function in a TSv1 repo changing the API name from global to ontology bound will cause compile time breaks (but shouldn’t cause runtime breaks).
OK, I don’t want to break my functions repo that also uses this function. Can I create a new function that is ontology bound without effecting the other functions that are currently used in my functions repo?
Yes a CM can publish both ontology bound and global functions from the same Compute Module.




