Changing Id datatype for Object Locator Prefill in Slate

Hi team,

Following the documentation here for providing object references, is there any way that we can specify the data type of the id?

In particular, I am looking at specifying the difference between int and long. Since typescript uses the notion of numerics, it seems like all numerics will be treated as int when making the query, which would not work for objects that have long types for their pk.

Currently, the Action widget Object Locator prefills only support the following Primary Key value types:

  • Boolean
  • Integer
  • Double
  • String

Until further support is added, we recommend using OSDK via the Functions tab to apply Actions as OSDK provides more expansive type support.

I am trying to use OSDK in slate to do so but I am facing the same error. Is there anyway I can cast the datatype to a Long type in slate functions?

I am trying to bring in the “@foundry/functions-api” library into slate so I can cast the value into a Long type, but it seems that this library is not available within slate functions.