This content is also available at learn.palantir.com ↗ and is presented here for accessibility purposes.
So far, you’ve been working with interfaces that abstract away code elements; Workshop, OMA, Object Views are all are “no-code” environments. What about when Application developers may want to add custom business logic that exceeds the native features of Ontology-aware applications? In these cases, you can write Foundry Functions to develop and publish centrally-managed, reusable logic. Learning to write and integrate Functions into your workflows is an integral part of the builder experience, because it permits you to extend the capability of your applications through the Ontology API.
The goal of this tutorial is to provide hands-on examples of at least three ways to use Functions to enhance your applications. At the end of this training, you will have augmented your Workshop module with the following:
Functions are written in TypeScript ↗, which is a programming language built on JavaScript. In this tutorial, you’ll encounter examples instructing you to copy/paste TypeScript code snippets into your editor—often without a full explanation of the syntax. It is not the purpose of this course to teach you to write TypeScript code. For that, consult the numerous online TypeScript reference material and training. The Foundry documentation offers further examples of using TypeScript with the Foundry Ontology API.
Understand the general structure of a Foundry Function.
Practice writing, publishing, and using these types of Functions in your applications: