Automtically Execution Two function Sequentially in AIP Logic

Hello, I am beginner in Palantir. I am working on one requirement. In this requirement. I have created two function: 1) Download PDF 2) DownloadCSV. Both funcitons are connected with Ontology to get the data. Now my requirement is to run both function sequentially. How i can do that using AIP Logic. Both are not dependent on each other and taking input from Ontology and it is already working on button.

Hi @nittin14,

Since both functions are already working independently with buttons and are connected to your Ontology, you can use AIP Logic to orchestrate them sequentially:

Step 1: Create a Logic Function

  1. Open AIP Logic in your Foundry environment
  2. Create a new Logic function that will serve as your orchestrator
  3. Define the input parameters that your functions need from the Ontology

Step 2: Add Sequential Function Blocks

Within your Logic function:

  1. Add an function block for your Download PDF function
  2. Add another function block for your Download CSV function
  3. Connect these blocks sequentially (one after the other)

Since your functions are not dependent on each other, they can run in sequence without passing data between them. Both will independently fetch data from the Ontology.

Step 3: Create a Function-Backed Action

  1. After building your Logic function, publish it
  2. Create a Function-backed Action that wraps your Logic function
  3. This Action can then be triggered from Workshop with a single button

Step 4: Connect to Workshop

Replace your two separate buttons with a single button that triggers your new Logic-backed Action. This will execute both downloads sequentially.

Best Regards,
Sanjeeth

1 Like

Thank you will check and update you