How can I access an object type last update date in code repo?

Hello,

I’m working on a workshop application and I would like to have a metric card with the last update date for an object type used in the app.

This feature doesn’t seem to be available directly in workshop, the only solution is to use a function defined variable and try to get the last update date using typescript in code repo.

My question is : Do you know if it is possible to get the last refresh date using an API call ?
I didn’t find any documentation mentioning last update date of an object type.

Thank’s :smiley:

Hi

For your use case, you can create a Object set aggregation variable on the last update property from the object type in workshop and use this variable in a Metric card widget in the workshop again.
Hope this helps!

Hello,

Thank’s for your answer! The problem is the update date is not a property in my object type, it’s only a metadata.

Here is the date i’m trying to access, you can find it in the ontology manager :

Thanks you !

1 Like

Hi @samyafk

I’m happy to share that you can now display the last build time for any object type or data source right in your workshop down to sub-minute accuracy. Super handy for tracking freshness/staleness and keeping users informed! It flags failed builds and shows you when builds are currently running.

Check out the docs here and announcement here!

Separately, without using the widget, if you needed just the output of the last update, you could also use Palantir’s APIs:

  1. Getting the details of the master branch which will return the latest transaction
  2. Getting the metadata of the transaction with the associated closedTime
1 Like

Where is the new widget? I do not see it available to me in Workshop, has it not rolled out to everyone yet? Thanks!