Go Back
Simple Lingk Event API Subscription Tester
Publisher
: Lingk
Run In Lingk
Description
This recipe demonstrates a Mock event payload for recipe subscription. To use this recipe -- select your environment, run the recipe, and paste the sample event payload into the Event window.
Browse the knowledge base
Twitter
E-Mail
# _____ _ _____ __ # | __ \ (_) |_ _| / _| # | |__) |___ ___ _ _ __ ___ | | _ __ | |_ ___ # | _ // _ \/ __| | '_ \ / _ \ | | | '_ \| _/ _ \ # | | \ \ __/ (__| | |_) | __/ _| |_| | | | || (_) | # |_| \_\___|\___|_| .__/ \___| |_____|_| |_|_| \___/ # | | # |_| # Project Name - SIMPLE LINGK EVENT API SUBSCRIPTION TESTER # Recipe URL - https://app.lingk.io/a/10932/tf/17907 # Description - # This recipe demonstrates a Mock event payload for recipe subscription. # To use this recipe -- select your environment, run the recipe, and paste the sample event payload into the Event window. # Paste this payload into the Event window when Running the recipe. This event payload can also be passed to the Lingk REST APIs. #{ # "transId": "9197", # "webhookBody": { # "event": { # "verb": "create", # "appKey": "salesforce", # "eventGuid": "476a87fe3c3b4b668499e1a5557f2636", # "tenantKey": "centralu", # "timestamp": "2019-01-03T21:18:19.163101247Z", # "objectType": "centralu.salesforce.newlead", # "eventObject": { # "foo": "bar", # "key": "value" # } # }, # "deliveryAttempt": 1, # "subscriptionGuid": "65c2b0d8486e47768c2c97db864b40ff" # }, # "environmentId": "30", # "environmentName": "Dev", # "webhookDeliveryTimestamp": "Thu, 03 Jan 2019 21:18:19 UTC" #} # Industry - Higher Ed # Business Process - Graduate Reporting # Systems - # Connectors - JSON # Data Flows - Single Direction # Connection Type - JSONs # Add Recipe notes / Change log information here! # _____ _ # / ____| | | # | | ___ _ __ _ __ ___ ___| |_ ___ _ __ ___ # | | / _ \| '_ \| '_ \ / _ \/ __| __/ _ \| '__/ __| # | |___| (_) | | | | | | | __/ (__| || (_) | | \__ \ # \_____\___/|_| |_|_| |_|\___|\___|\__\___/|_| |___/ # # CONNECTORS specify what data will be pulled into the in-memory database during processing connectors: # JSON Setup - https://help.lingk.io/en/articles/74-json-connector-reference ###### Start: JSON Connectors ####### # Example source data - name: eventPayload type: json properties: jsonObject: > {{dict|tojson}} ###### End: JSON Connectors ####### # _____ _ _ _ # / ____| | | | | | # | (___ | |_ __ _| |_ ___ _ __ ___ ___ _ __ | |_ ___ # \___ \| __/ _` | __/ _ \ '_ ` _ \ / _ \ '_ \| __/ __| # ____) | || (_| | || __/ | | | | | __/ | | | |_\__ \ # |_____/ \__\__,_|\__\___|_| |_| |_|\___|_| |_|\__|___/ # STATEMENTS specify how the data should be processed while in memory statements: #******************************************************************** D I S C L A I M E R *********************************************************************************************** # * # Note that in an effort to keep recipes optimized for DPH (Data Processing Hours), print statements should be commented out after development has concluded for a recipe. * # For more information on DPH optimization, please visit the following help article - https://help.lingk.io/en/articles/212-minimizing-data-processing-hours-on-the-lingk-platform * # * #******************************************************************** D I S C L A I M E R *********************************************************************************************** # this statement will also add attributes to the PubSub topic # anything in the "_attributes" struct will be sent as attributes # each row in the source table will be a new message - statement: | (pubSubEvents) => SELECT * FROM eventPayload #- statement: print pubSubEvents - statement: | (pubSubEvents) => SELECT webhookBody.event.eventObject.key, webhookBody.event.eventObject.foo FROM eventPayload #- statement: print pubSubEvents # Add more statements to convert, join, aggregrate, transform, and integrate your data
Inserting JSON into Amazon S3
Trigger Lingk Events through a Recipe