I would like to be able to trigger an automation on an object sync event. My use case is when I have a Batch modelling objective which runs and updates the backing dataset of an object. From there, I would like to trigger automation to call a simple function without inputs to create a set of triggered inbox events. As it is, i have to schedule it as a cron, because if i try to trigger on object updates, it does not allow me to call a function without object inputs.
Hi,
from what I have tried, Automation in Palantir does not seem to restrict the type of action types that get triggered by the configured condition. When I set the condition to be “Objects modified”, it allows me to choose action types which only involve non-object input parameters, such as string, list, and date, and I can assign static values to these parameters. See screenshot below for an example:
Not sure if this is what you are looking for?
Thanks Jamie, fair point and I wansn’t totally clear on what I am trying to achieve.
The problem i encountered is that it will then run on all of the individual objects that met the condition. The function i am trying to run should only run once, becuase it is querying the ontology directly to apply logic to and entire ontology object. When it is triggered on create or update, it run once for every modified object, which is not what I want. The outcome i am looking for is anytime a sync runs on the object, I run a function once.
I think you’re looking for one of these two approaches dependent on anticipated load time/volume…:
-
Look at some of the workarounds mentioned here… i.e., slap an orchestrating wrapper on top, test/re-test function: https://community.palantir.com/t/edit-functions-do-not-support-return-values/2459?u=23dimethylpant
-
I’m not sure of your intended user experience and if this fits, but it’s one of the cleanest ways I’ve seen that job/job progress polling pattern implemented in any platform/frameowork figured I’d at least share as https://www.palantir.com/docs/foundry/ontology-sdk/typescript-subscriptions/
Not sure if you have looked at these options from the “Execution mode” section within Automation? There is an option to run the effect once for each group of the modified objects, and the property/properties of each grouping can be configured as well.
With a similar configuration as the one in the screenshot, if your sync can assign the same timestamp value to multiple objects’ “Updated Timestamp” property, then the automation will only run the effect once as there is only 1 grouping identified.
Ah, clever! I did not think of that. Thanks for the tip!

