I have a simple Slate app which is supposed to render items in a calendar. I also have an object type with a timestamp property. I now use workshop to identify the relevant objects in question. An iframe is then used in Workshop to bring in the Slate App. The relevant objects are passed in as object set:
In Slate I have a getMessage event defined with the following code to read the object set into a variable.
Now, the challenge is to access the objects in Slate. Instead of a list of objects from where I can access ā<object_set>.data.propertyā I get a weird structure, such as
To retrieve the data from your ObjectSet in Foundry, youāll need to use the āGet Objectsā endpoint from the Object Storage Service in Phonograph2. Hereās a typical workflow:
Pass the ObjectSet from Workshop to a variable in Slate. Use a function to store your objectSet definition. You can pluck the objectSet definition from Workshop directly for testing - example: `
@comew - I like this approach but the only downside is that a Palantir administrator has to expose the versionedObject endpoint to slate, which I donāt have available in my instance.
@SimonH
This is the structure of my call to the getObjectsPage endpoint
For reference this is the endpoint Slate
Get Objects Page
PUT
/objectSets/objects
Fetches object rids on requested page of evaluated object set. If more objects are available, the returned pageToken can be used to fetch the subsequent page. Note that page tokens are not long-lived and may get invalidated (for example following updates to the underlying index or indices, or after a few minutes). Note that the service currently does not provide guarantees around the consistency of returned results. In particular, any state changes to the underlying indices can cause duplicate results to be returned or some results to be skipped between subsequent page requests.
Okay, in the first step I am able to retrieve the object RIDs (not sure why you go through a function. I use the variable directly and that also works). Now I try to use Phonograph2 API and tried to get a single object (Get Object). However, I get an error about the object type not being registered. Could it be an issue with OSv2 (which I am using)?