Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
WebHook.Check
Checks whether a web hook has been triggered.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WebHook | 11.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
WebHook | Available in MBS FileMaker Plugin 14.4 or newer. The reference number of the web hook. Pass a web hook reference if you like to check only for that web hook. If parameter is empty or missing, we return all pendign web requests. |
$webhook | Optional |
Result
Returns list or error.
Description
Checks whether a web hook has been triggered.Returns list of web request reference numbers for new requests received.
Please check them with WebRequest functions and then call later WebRequest.Release to free object.
This lets you open a network port for incoming HTTP Requests, e.g. from a web service like your phone system.
Examples
Looping script to process incoming requests:
Loop
# check for pending requests
Set Variable [ $list ; Value: MBS( "WebHook.Check" ) ]
#
# loop over pending requests
Set Variable [ $count ; Value: ValueCount($list) ]
Set Variable [ $index ; Value: 1 ]
If [ $index ≤ $count ]
Loop
Set Variable [ $ref ; Value: GetValue($list; $index) ]
Perform Script [ Specified: From list ; “WebHookReceived on server” ; Parameter: $ref ]
#
# next
Set Variable [ $index ; Value: $index + 1 ]
Exit Loop If [ $index > $count ]
End Loop
End If
#
Pause/Resume Script [ Duration (seconds): ,1 ]
End Loop
See also
Example Databases
Blog Entries
This function checks for a license.
Created 13th October 2021, last changed 2nd August 2024