Questions tagged [foundry-functions]
24 questions
3
votes
1 answer
Querying a live deployment (modeling objectives) from workshop or functions, but not samplewise (like with scenarios)
I have an optimization algorithm deployed as a live deployment. It takes a set of objects and returns a set of objects with potentially different size. This works just fine when I'm using the REST api.
The problem is, I want to let the user of the…

JulianStreibel
- 33
- 4
3
votes
2 answers
How can I groupby multiple properties using a Function in Palantir Foundry?
I'd like to aggregate across a few properties using a Function. For example, I have a Function where a start and end date is input, and also a Schedule Object Type with "date", "shift_type", "department", and "hours worked" properties.
I'd like my…

kevpl541991
- 161
- 4
3
votes
1 answer
How to have flexible grouping column in Foundry Functions?
In my Workshop application, I would like to have a bar chart with a changeable x-axis. A dropdown widget would be used to select the desired x-axis.
For this I am writing a TypeScript function, that will return the data that will feed the chart…

Eduard Jesko
- 198
- 1
- 1
- 7
2
votes
1 answer
Why can’t functions call internal Foundry APIs?
I am trying to write a Function on an Object that makes Foundry REST API calls. Is there an example or recommended internal Typescript API that I can import to make Foundry REST API calls?

Max Magid
- 245
- 1
- 8
2
votes
1 answer
How to aggregate an ObjectSet after SearchAround
I have 2 phonograph objects, each one having millions of rows, which I have linked by using the Search Around methods.
On the example below, I filter to an Object Set of Flights based on the departure code, then I Search Around to the Passengers on…

Charitini Skaltsari
- 21
- 1
2
votes
2 answers
How to compare the content of 2 columns in functions on object?
I am trying to build a query to match two columns and I have tried the following:
obj= obj.filter(e => e.colOne.exactMatch(e.colTwo))
I am not be able to get this working, is there any way to filter by comparing the content of 2 columns?

houssem gharsalli
- 59
- 5
2
votes
1 answer
How to fix a query in functions within foundry which is hiting ObjectSet:PagingAboveConfiguredLimitNotAllowed?
I have phonorgraph object with billions of rows and we are querying it through object set service
for example, I want to get all DriverLicences from certain city.
@Function()
public getDriverLicences(city: string):…

houssem gharsalli
- 59
- 5
1
vote
1 answer
How do I create a cumulative sum graph in Palantir Foundry Workshop?
I have some objects that represent maintenance jobs, each with a time column like this:
Due On
2021-12-01
2022-06-17
2022-07-05
2022-07-05
2022-08-01
2023-09-02
How can I generate a cumulative graph in Palantir Foundry…

domdomegg
- 1,498
- 11
- 20
1
vote
2 answers
How do I create a segmented cumulative sum graph in Palantir Foundry Workshop?
I have some objects that represent maintenance jobs that look like this:
Due On
Status
2021-12-01
open
2022-06-17
open
2022-07-05
closed
2022-07-05
closed
2022-08-01
open
2023-09-02
open
How can I generate a segmented…

domdomegg
- 1,498
- 11
- 20
1
vote
1 answer
How can I run a Foundry Function on Object only when clicking a button in Slate
I am using Slate, and running a Foundry Function on Object (FoO) based on input from users of the application. However, anytime a user changes one of the input, the function re-runs, which seems inefficient.
Is there a way to run the Function only…

user1429421
- 21
- 3
1
vote
1 answer
How to limit the no. of top values when aggregating in a Function?
I am writing a function which just groupby a string property. For this purpose, I need to select topValues() as the aggregation type. However, I get all possible buckets, while I just need the first 10 ones. Is it possible to set the max. number of…

Pablo Cosio
- 71
- 5
1
vote
0 answers
How to use wildcards for filtering an Object Set based on a string property in ts-queries (Palantir Foundry OSS)?
While implementing some search functionality using the StringPropertyFilter::fuzzyMatchAllTokens method I stumbled across the WILDCARD ObjectSetFilterType.
Filtering of a string property using wildcards is neither mentioned in the documentation…

elias
- 11
- 2
1
vote
2 answers
How to filter on aggregated data in Foundry Functions?
I would like to know how can I filter on grouped data in Foundry Functions. I already managed to group and aggregate on my data, see below:
@Function()
public async grouping(lowerBound : Integer ): Promise> {
…

Eduard Jesko
- 198
- 1
- 1
- 7
1
vote
1 answer
How to join two objects and return object set as ouput in palantir through typescript functions
I need to create a pivot table based on two objects. For that my first step is to join two objects and then get one combined object through typescript functions. From that object I will groupBy and perform some aggregate functions(sum, min) and …

Monica Gaddipati
- 69
- 2
0
votes
1 answer
How to set object's timestamp property through functions in foundry?
I am trying to set a timestamp property of object using foundry functions but it is giving me error.
I tried to pass this value in timestamp property but it gives me error
object.timeProperty = {type: 'Timestamp', dateTime:…

harsh2702
- 27
- 3