Ontology edits from osdk app

Hello,
I am working on making edits from external application with osdk, what is the best way to test this functionality without making real edits to Ontology?

Thanks,

Hi - currently the best way is to use Actions, which support validation-only requests.

In TypeScript OSDK, you can pass the { $validateOnly: true } option to your applyAction call.

You can also use our new React OSDK library if your app is a React app - here are the docs for applying Actions https://palantir.github.io/osdk-ts/react/actions/

Down the line, I would imagine that Foundry branching support would let you invoke actions and write to a branched Ontology isolated from the main branch. This is still a while away, though.

Hey Bryant,

If I need to test edits, is Rest API only the route?
During the edits, if I create a record, does it trigger all the automations?

Thanks

You can test your Action if it’s Function-backed via Live Preview in Code Workspaces/Code Repositories as well to see what Ontology Edits it produces. Test runs will not trigger any automations.