MBS FileMaker Plugin Example Databases

WebHook

All examples are included with download of MBS FileMaker Plugin.

WebHook.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts13
Value Lists0
Custom Functions0
Custom Menus24
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseScript: Cleanup
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
WebHook
12 fields defined, 0 record
WebHook

Fields

Table Name: WebHook - 12 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
HTTP MethodNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      URLNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          HTTP VersionNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              Local IPNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  Local PortNormal, NumberAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                      Remote IPNormal, TextAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                      • Indexing: None
                      • Automatically create indexes as needed
                      • Index Language: German
                          Remote PortNormal, NumberAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                              Server PortNormal, TextAuto-Enter:
                              • Allow editing
                              Validation:
                              • Only during data entry
                              Storage:
                              • Global
                              • Repetitions: 1
                              • Index Language: German
                                  Server WebhookNormal, NumberAuto-Enter:
                                  • Allow editing
                                  Validation:
                                  • Only during data entry
                                  Storage:
                                  • Global
                                  • Repetitions: 1
                                  • Index Language: German
                                      HeadersNormal, TextAuto-Enter:
                                      • Allow editing
                                      Validation:
                                      • Only during data entry
                                      Storage:
                                      • Repetitions: 1
                                      • Indexing: None
                                      • Automatically create indexes as needed
                                      • Index Language: German
                                          RawDataNormal, TextAuto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                          • Indexing: None
                                          • Automatically create indexes as needed
                                          • Index Language: German
                                              BodyNormal, TextAuto-Enter:
                                              • Allow editing
                                              Validation:
                                              • Only during data entry
                                              Storage:
                                              • Repetitions: 1
                                              • Indexing: None
                                              • Automatically create indexes as needed
                                              • Index Language: German

                                                  Layout Objects: WebHook

                                                  Regular Fields

                                                  Field Name: WebHook::HTTP Method
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 114 pt
                                                  • Left: 138 pt
                                                  • Bottom: 145 pt
                                                  • Right: 516 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: Default for Data Type
                                                  • Go to next field using: Tab key
                                                  Yes

                                                  Field Name: WebHook::URL
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 149 pt
                                                  • Left: 138 pt
                                                  • Bottom: 180 pt
                                                  • Right: 516 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: Default for Data Type
                                                  • Go to next field using: Tab key
                                                  Yes

                                                  Field Name: WebHook::HTTP Version
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 184 pt
                                                  • Left: 138 pt
                                                  • Bottom: 215 pt
                                                  • Right: 516 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: Default for Data Type
                                                  • Go to next field using: Tab key
                                                  Yes

                                                  Field Name: WebHook::Local IP
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 219 pt
                                                  • Left: 138 pt
                                                  • Bottom: 250 pt
                                                  • Right: 516 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: Default for Data Type
                                                  • Go to next field using: Tab key
                                                  Yes

                                                  Field Name: WebHook::Local Port
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 254 pt
                                                  • Left: 138 pt
                                                  • Bottom: 285 pt
                                                  • Right: 516 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: Default for Data Type
                                                  • Go to next field using: Tab key
                                                  Yes

                                                  Field Name: WebHook::Remote IP
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 289 pt
                                                  • Left: 138 pt
                                                  • Bottom: 320 pt
                                                  • Right: 516 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: Default for Data Type
                                                  • Go to next field using: Tab key
                                                  Yes

                                                  Field Name: WebHook::Remote Port
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 324 pt
                                                  • Left: 138 pt
                                                  • Bottom: 355 pt
                                                  • Right: 516 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: Default for Data Type
                                                  • Go to next field using: Tab key
                                                  Yes

                                                  Field Name: WebHook::Server Port
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 9 pt
                                                  • Left: 138 pt
                                                  • Bottom: 40 pt
                                                  • Right: 391 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: Default for Data Type
                                                  • Go to next field using: Tab key
                                                  No

                                                  Field Name: WebHook::Server Webhook
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 44 pt
                                                  • Left: 138 pt
                                                  • Bottom: 75 pt
                                                  • Right: 391 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: Default for Data Type
                                                  • Go to next field using: Tab key
                                                  No

                                                  Field Name: WebHook::Headers
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 114 pt
                                                  • Left: 634 pt
                                                  • Bottom: 355 pt
                                                  • Right: 1014 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: Default for Data Type
                                                  • Go to next field using: Tab key
                                                  Yes

                                                  Field Name: WebHook::RawData
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 359 pt
                                                  • Left: 138 pt
                                                  • Bottom: 600 pt
                                                  • Right: 516 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: Default for Data Type
                                                  • Go to next field using: Tab key
                                                  Yes

                                                  Field Name: WebHook::Body
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 359 pt
                                                  • Left: 636 pt
                                                  • Bottom: 600 pt
                                                  • Right: 1014 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: Default for Data Type
                                                  • Go to next field using: Tab key
                                                  Yes

                                                  Buttons

                                                  Button PropertiesCoordinatesScript/Script Step
                                                    Type:
                                                  • Text: Start
                                                  • Top: 9 pt
                                                  • Left: 427 pt
                                                  • Bottom: 40 pt
                                                  • Right: 580 pt
                                                  • Anchoring: Left, Top
                                                  Perform Script [ “Setup” ]

                                                  Scripts:


                                                  Button PropertiesCoordinatesScript/Script Step
                                                    Type:
                                                  • Text: Stop
                                                  • Top: 44 pt
                                                  • Left: 427 pt
                                                  • Bottom: 75 pt
                                                  • Right: 580 pt
                                                  • Anchoring: Left, Top
                                                  Perform Script [ “Cleanup” ]

                                                  Scripts:


                                                  Script Hierarchy

                                                  Setup
                                                  Cleanup
                                                  WebHookReceived
                                                  Change Answer
                                                  -
                                                  Setup with KeepOpen
                                                  WebHookReceived With KeepOpen
                                                  -
                                                  Setup on Server
                                                  WebHookReceived on server
                                                  -
                                                  Setup with RAW mode
                                                  WebHookReceived With RAW Mode

                                                  Next Script: [Cleanup]
                                                  Script NameSetup
                                                  Run script with full access privilegesOff
                                                  Include In MenuYes
                                                  Layouts that use this script
                                                  Scripts that use this script
                                                    Script Definition
                                                    Script Steps
                                                    • If [ Length( $$WebHooks ) > 0 ]
                                                    • Set Variable [ $r; Value:MBS("WebHook.Release"; $$WebHooks) ]
                                                    • Set Variable [ $$WebHooks; Value:"" ]
                                                    • Set Field [ WebHook::Server Webhook; "" ]
                                                    • End If
                                                    • If [ IsEmpty ( $$WebHooks ) ]
                                                    • Set Variable [ $$WebHooks; Value:MBS("WebHook.Create") ]
                                                    • If [ 0 ]
                                                    • # SSL ?
                                                    • Set Variable [ $r; Value:MBS("WebHook.SetSSL"; $$WebHooks; "/Users/cs/Documents/todo/WebHook/certificate.crt"; "/Users/cs/Documents/todo/WebHook/private_key.pem") ]
                                                    • Set Variable [ $r; Value:MBS("WebHook.GetSSL"; $$WebHooks) ]
                                                    • End If
                                                    • Set Variable [ $r; Value:MBS("WebHook.Listen"; $$WebHooks; WebHook::Server Port) ]
                                                    • Set Variable [ $r; Value:MBS("WebHook.SetScript"; $$WebHooks; Get(FileName); "WebHookReceived") ]
                                                    • Set Field [ WebHook::Server Webhook; $$WebHooks ]
                                                    • End If
                                                    Fields used in this script
                                                    Scripts used in this script
                                                      Layouts used in this script
                                                        Tables used in this script
                                                        Table occurrences used by this script
                                                        Custom Functions used by this script
                                                          Custom menu set used by this script

                                                            Previous Script: [Setup]Next Script: [WebHookReceived]
                                                            Script NameCleanup
                                                            Run script with full access privilegesOff
                                                            Include In MenuYes
                                                            Layouts that use this script
                                                            Scripts that use this script
                                                              Script Definition
                                                              Script Steps
                                                              • If [ not IsEmpty ( $$WebHooks ) ]
                                                              • Set Variable [ $r; Value:MBS("WebHook.Release"; $$WebHooks) ]
                                                              • Set Variable [ $$WebHooks; Value:"" ]
                                                              • Set Field [ WebHook::Server Webhook; "" ]
                                                              • End If
                                                              Fields used in this script
                                                              Scripts used in this script
                                                                Layouts used in this script
                                                                  Tables used in this script
                                                                  Table occurrences used by this script
                                                                  Custom Functions used by this script
                                                                    Custom menu set used by this script

                                                                      Previous Script: [Cleanup]Next Script: [Change Answer]
                                                                      Script NameWebHookReceived
                                                                      Run script with full access privilegesOff
                                                                      Include In MenuNo
                                                                      Layouts that use this script
                                                                        Scripts that use this script
                                                                          Script Definition
                                                                          Script Steps
                                                                          Fields used in this script
                                                                          Scripts used in this script
                                                                            Layouts used in this script
                                                                              Tables used in this script
                                                                              Table occurrences used by this script
                                                                              Custom Functions used by this script
                                                                                Custom menu set used by this script

                                                                                  Previous Script: [WebHookReceived]Next Script: [-]
                                                                                  Script NameChange Answer
                                                                                  Run script with full access privilegesOff
                                                                                  Include In MenuNo
                                                                                  Layouts that use this script
                                                                                    Scripts that use this script
                                                                                      Script Definition
                                                                                      Script Steps
                                                                                      • Set Variable [ $text; Value:"HTTP/1.1 201 Created¶Server: MyServer 1.0¶Connection: close¶Content-Length: 0¶¶" ]
                                                                                      • Set Variable [ $text; Value:MBS( "Text.ReplaceNewline"; $Text; 3 ) ]
                                                                                      • Set Variable [ $r; Value:MBS("WebHook.SetAutoAnswer"; WebHook::Server Webhook; $text; "UTF-8") ]
                                                                                      Fields used in this script
                                                                                      Scripts used in this script
                                                                                        Layouts used in this script
                                                                                          Tables used in this script
                                                                                          Table occurrences used by this script
                                                                                          Custom Functions used by this script
                                                                                            Custom menu set used by this script

                                                                                              Previous Script: [Change Answer]Next Script: [Setup with KeepOpen]
                                                                                              Script Name-
                                                                                              Run script with full access privilegesOff
                                                                                              Include In MenuNo
                                                                                              Layouts that use this script
                                                                                                Scripts that use this script
                                                                                                  Script Definition
                                                                                                  Script Steps
                                                                                                    Fields used in this script
                                                                                                      Scripts used in this script
                                                                                                        Layouts used in this script
                                                                                                          Tables used in this script
                                                                                                            Table occurrences used by this script
                                                                                                              Custom Functions used by this script
                                                                                                                Custom menu set used by this script

                                                                                                                  Previous Script: [-]Next Script: [WebHookReceived With KeepOpen]
                                                                                                                  Script NameSetup with KeepOpen
                                                                                                                  Run script with full access privilegesOff
                                                                                                                  Include In MenuYes
                                                                                                                  Layouts that use this script
                                                                                                                    Scripts that use this script
                                                                                                                      Script Definition
                                                                                                                      Script Steps
                                                                                                                      • If [ Length( $$WebHooks ) > 0 ]
                                                                                                                      • Set Variable [ $r; Value:MBS("WebHook.Release"; $$WebHooks) ]
                                                                                                                      • Set Variable [ $$WebHooks; Value:"" ]
                                                                                                                      • Set Field [ WebHook::Server Webhook; "" ]
                                                                                                                      • End If
                                                                                                                      • If [ IsEmpty ( $$WebHooks ) ]
                                                                                                                      • Set Variable [ $$WebHooks; Value:MBS("WebHook.Create") ]
                                                                                                                      • If [ 0 ]
                                                                                                                      • # SSL ?
                                                                                                                      • Set Variable [ $r; Value:MBS("WebHook.SetSSL"; $$WebHooks; "/Users/cs/Documents/todo/WebHook/certificate.crt"; "/Users/cs/Documents/todo/WebHook/private_key.pem") ]
                                                                                                                      • Set Variable [ $r; Value:MBS("WebHook.GetSSL"; $$WebHooks) ]
                                                                                                                      • End If
                                                                                                                      • #enable keep open and disable auto answer, so we can send custom answer
                                                                                                                      • Set Variable [ $r; Value:MBS("WebHook.SetAutoAnswer"; $$Webhooks; ""; "UTF-8") ]
                                                                                                                      • Set Variable [ $r; Value:MBS("WebHook.SetMode"; $$WebHooks; 1) ]
                                                                                                                      • Set Variable [ $r; Value:MBS("WebHook.Listen"; $$WebHooks; WebHook::Server Port) ]
                                                                                                                      • Set Variable [ $r; Value:MBS("WebHook.SetScript"; $$WebHooks; Get(FileName); "WebHookReceived With KeepOpen") ]
                                                                                                                      • Set Field [ WebHook::Server Webhook; $$WebHooks ]
                                                                                                                      • End If
                                                                                                                      Fields used in this script
                                                                                                                      Scripts used in this script
                                                                                                                        Layouts used in this script
                                                                                                                          Tables used in this script
                                                                                                                          Table occurrences used by this script
                                                                                                                          Custom Functions used by this script
                                                                                                                            Custom menu set used by this script

                                                                                                                              Previous Script: [Setup with KeepOpen]Next Script: [-]
                                                                                                                              Script NameWebHookReceived With KeepOpen
                                                                                                                              Run script with full access privilegesOff
                                                                                                                              Include In MenuNo
                                                                                                                              Layouts that use this script
                                                                                                                                Scripts that use this script
                                                                                                                                  Script Definition
                                                                                                                                  Script Steps
                                                                                                                                  Fields used in this script
                                                                                                                                  Scripts used in this script
                                                                                                                                    Layouts used in this script
                                                                                                                                      Tables used in this script
                                                                                                                                      Table occurrences used by this script
                                                                                                                                      Custom Functions used by this script
                                                                                                                                        Custom menu set used by this script

                                                                                                                                          Previous Script: [WebHookReceived With KeepOpen]Next Script: [Setup on Server]
                                                                                                                                          Script Name-
                                                                                                                                          Run script with full access privilegesOff
                                                                                                                                          Include In MenuNo
                                                                                                                                          Layouts that use this script
                                                                                                                                            Scripts that use this script
                                                                                                                                              Script Definition
                                                                                                                                              Script Steps
                                                                                                                                                Fields used in this script
                                                                                                                                                  Scripts used in this script
                                                                                                                                                    Layouts used in this script
                                                                                                                                                      Tables used in this script
                                                                                                                                                        Table occurrences used by this script
                                                                                                                                                          Custom Functions used by this script
                                                                                                                                                            Custom menu set used by this script

                                                                                                                                                              Previous Script: [-]Next Script: [WebHookReceived on server]
                                                                                                                                                              Script NameSetup on Server
                                                                                                                                                              Run script with full access privilegesOff
                                                                                                                                                              Include In MenuYes
                                                                                                                                                              Layouts that use this script
                                                                                                                                                                Scripts that use this script
                                                                                                                                                                  Script Definition
                                                                                                                                                                  Script Steps
                                                                                                                                                                  • If [ Length( $$WebHooks ) > 0 ]
                                                                                                                                                                  • Set Variable [ $r; Value:MBS("WebHook.Release"; $$WebHooks) ]
                                                                                                                                                                  • Set Variable [ $$WebHooks; Value:"" ]
                                                                                                                                                                  • Set Field [ WebHook::Server Webhook; "" ]
                                                                                                                                                                  • End If
                                                                                                                                                                  • If [ IsEmpty ( $$WebHooks ) ]
                                                                                                                                                                  • Set Variable [ $$WebHooks; Value:MBS("WebHook.Create") ]
                                                                                                                                                                  • If [ 0 ]
                                                                                                                                                                  • # SSL ?
                                                                                                                                                                  • Set Variable [ $r; Value:MBS("WebHook.SetSSL"; $$WebHooks; "/Users/cs/Documents/todo/WebHook/certificate.crt"; "/Users/cs/Documents/todo/WebHook/private_key.pem") ]
                                                                                                                                                                  • Set Variable [ $r; Value:MBS("WebHook.GetSSL"; $$WebHooks) ]
                                                                                                                                                                  • End If
                                                                                                                                                                  • Set Variable [ $r; Value:MBS("WebHook.Listen"; $$WebHooks; WebHook::Server Port) ]
                                                                                                                                                                  • Set Field [ WebHook::Server Webhook; $$WebHooks ]
                                                                                                                                                                  • End If
                                                                                                                                                                  • 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 [ “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
                                                                                                                                                                  Fields used in this script
                                                                                                                                                                  Scripts used in this script
                                                                                                                                                                  Layouts used in this script
                                                                                                                                                                    Tables used in this script
                                                                                                                                                                    Table occurrences used by this script
                                                                                                                                                                    Custom Functions used by this script
                                                                                                                                                                      Custom menu set used by this script

                                                                                                                                                                        Previous Script: [Setup on Server]Next Script: [-]
                                                                                                                                                                        Script NameWebHookReceived on server
                                                                                                                                                                        Run script with full access privilegesOff
                                                                                                                                                                        Include In MenuNo
                                                                                                                                                                        Layouts that use this script
                                                                                                                                                                          Scripts that use this script
                                                                                                                                                                          Script Definition
                                                                                                                                                                          Script Steps
                                                                                                                                                                          Fields used in this script
                                                                                                                                                                          Scripts used in this script
                                                                                                                                                                            Layouts used in this script
                                                                                                                                                                            Tables used in this script
                                                                                                                                                                            Table occurrences used by this script
                                                                                                                                                                            Custom Functions used by this script
                                                                                                                                                                              Custom menu set used by this script

                                                                                                                                                                                Previous Script: [WebHookReceived on server]Next Script: [Setup with RAW mode]
                                                                                                                                                                                Script Name-
                                                                                                                                                                                Run script with full access privilegesOff
                                                                                                                                                                                Include In MenuNo
                                                                                                                                                                                Layouts that use this script
                                                                                                                                                                                  Scripts that use this script
                                                                                                                                                                                    Script Definition
                                                                                                                                                                                    Script Steps
                                                                                                                                                                                      Fields used in this script
                                                                                                                                                                                        Scripts used in this script
                                                                                                                                                                                          Layouts used in this script
                                                                                                                                                                                            Tables used in this script
                                                                                                                                                                                              Table occurrences used by this script
                                                                                                                                                                                                Custom Functions used by this script
                                                                                                                                                                                                  Custom menu set used by this script

                                                                                                                                                                                                    Previous Script: [-]Next Script: [WebHookReceived With RAW Mode]
                                                                                                                                                                                                    Script NameSetup with RAW mode
                                                                                                                                                                                                    Run script with full access privilegesOff
                                                                                                                                                                                                    Include In MenuYes
                                                                                                                                                                                                    Layouts that use this script
                                                                                                                                                                                                      Scripts that use this script
                                                                                                                                                                                                        Script Definition
                                                                                                                                                                                                        Script Steps
                                                                                                                                                                                                        • If [ Length( $$WebHooks ) > 0 ]
                                                                                                                                                                                                        • Set Variable [ $r; Value:MBS("WebHook.Release"; $$WebHooks) ]
                                                                                                                                                                                                        • Set Variable [ $$WebHooks; Value:"" ]
                                                                                                                                                                                                        • Set Field [ WebHook::Server Webhook; "" ]
                                                                                                                                                                                                        • End If
                                                                                                                                                                                                        • If [ IsEmpty ( $$WebHooks ) ]
                                                                                                                                                                                                        • Set Variable [ $$WebHooks; Value:MBS("WebHook.Create") ]
                                                                                                                                                                                                        • #enable keep open and disable auto answer, so we can send custom answer
                                                                                                                                                                                                        • Set Variable [ $r; Value:MBS("WebHook.SetAutoAnswer"; $$Webhooks; ""; "UTF-8") ]
                                                                                                                                                                                                        • Set Variable [ $r; Value:MBS("WebHook.SetMode"; $$WebHooks; 2+1) ]
                                                                                                                                                                                                        • Set Variable [ $r; Value:MBS("WebHook.Listen"; $$WebHooks; WebHook::Server Port) ]
                                                                                                                                                                                                        • Set Variable [ $r; Value:MBS("WebHook.SetScript"; $$WebHooks; Get(FileName); "WebHookReceived With RAW Mode") ]
                                                                                                                                                                                                        • Set Field [ WebHook::Server Webhook; $$WebHooks ]
                                                                                                                                                                                                        • End If
                                                                                                                                                                                                        Fields used in this script
                                                                                                                                                                                                        Scripts used in this script
                                                                                                                                                                                                          Layouts used in this script
                                                                                                                                                                                                            Tables used in this script
                                                                                                                                                                                                            Table occurrences used by this script
                                                                                                                                                                                                            Custom Functions used by this script
                                                                                                                                                                                                              Custom menu set used by this script

                                                                                                                                                                                                                Previous Script: [Setup with RAW mode]
                                                                                                                                                                                                                Script NameWebHookReceived With RAW Mode
                                                                                                                                                                                                                Run script with full access privilegesOff
                                                                                                                                                                                                                Include In MenuNo
                                                                                                                                                                                                                Layouts that use this script
                                                                                                                                                                                                                  Scripts that use this script
                                                                                                                                                                                                                    Script Definition
                                                                                                                                                                                                                    Script Steps
                                                                                                                                                                                                                    Fields used in this script
                                                                                                                                                                                                                    Scripts used in this script
                                                                                                                                                                                                                      Layouts used in this script
                                                                                                                                                                                                                        Tables used in this script
                                                                                                                                                                                                                        Table occurrences used by this script
                                                                                                                                                                                                                        Custom Functions used by this script
                                                                                                                                                                                                                          Custom menu set used by this script

                                                                                                                                                                                                                            Download example: WebHook

                                                                                                                                                                                                                            Used functions:




                                                                                                                                                                                                                            Links
                                                                                                                                                                                                                            MBS Xojo Plugins

                                                                                                                                                                                                                            Start Chat