Is valid media reference

Supported in: Batch, Streaming

Returns true if the input is a valid Foundry media reference.

Expression categories: Boolean

Declared arguments

  • Expression - String representing a media reference.
    Expression<String>

Output type: Boolean

Examples

Example 1: Base case

Argument values:

  • Expression: mediaRef
mediaRefOutput
{"mimeType":"PDF","reference":{"type":"datasetFile","datasetFile":{"fileReference":{"datasetRid":"ri.foundry.main.dataset.a","ref":"master","logicalFilePath":"file.pdf"}}}}true
{"mimeType":"PDF","reference":{"type":"mediaSetItem","mediaSetItem":{"mediaSetRid":"ri.mio.main.media-set.a", "mediaItemRid":"ri.mio.main.media-item.a"}}}true
not a media referencefalse