Reference > Functions reference > Get functions > Get(TriggerExternalEvent)
 

Get(TriggerExternalEvent)

In FileMaker Go, returns a number representing the event that activated an OnExternalCommandReceived script trigger.

Format 

Get ( TriggerExternalEvent )

Parameters 

None

Data type returned 

number

Originated in 

FileMaker Pro 14.0

Description 

In FileMaker Go, returns one of the following numbers:

 

Returned value

External event

0

Unknown

1

RemotePlayMedia

2

RemotePause

3

RemoteTogglePlayPause

4

RemotePlayNext

5

RemotePlayPrevious

6

RemoteSeek (begin or end seeking forward or backward)

7

RemoteStop

Example 1 

Controls which media file to play based on the event that activated the OnExternalCommandReceived script trigger on the lock screen or an external device.

If [Get(TriggerExternalEvent) = 4 ]
Go to Record/Request/Page [Next ; Exit after last: Off]
AVPlayer Play [Object Name: "Player"]
Else If [Get(TriggerExternalEvent) = 5 ]
Go to Record/Request/Page [Previous ; Exit after last: Off]
AVPlayer Play [Object Name: "Player"]
End If

Related topics 

Functions reference (category list)

Functions reference (alphabetical list)

About formulas

About functions

Defining calculation fields

Using operators in formulas

OnExternalCommandReceived script trigger