How to convert mediaReference string column to an actual mediaReference type column?

Hey, does anyone know how to convert a mediaReference string column to an actual mediaReference type column? There is a function in PB “check if media reference string is valid” and it returns True, just can’t find the function to convert the column type so the docs can be displayed.

Heya! In pipeline builder you can use the ‘logical type cast’ board to cast to Foundry specific types such as media references.

2 Likes

It’s easy:

just add this typeclass to the column:

reference.media_reference

1 Like