(window.webpackJsonp=window.webpackJsonp||[]).push([[86],{635:function(e,t,o){"use strict";o.r(t);var n=o(23),r=Object(n.a)({},(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[o("h1",{attrs:{id:"context"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#context"}},[e._v("#")]),e._v(" "),o("code",[e._v("$context")])]),e._v(" "),o("p",[o("code",[e._v("$context")]),e._v(' ("dollar context") is a variable that contains details about the current execution of a workflow, for instance the time the workflow was executed, the current event ID, and more.')]),e._v(" "),o("p",[e._v("Like "),o("code",[e._v("$event")]),e._v(", "),o("code",[e._v("$context")]),e._v(" is a global variable, accessible in any code or action step. "),o("code",[e._v("$context")]),e._v(" is also a JavaScript object, so you can access it's properties via dot-notation (for example, "),o("code",[e._v("$context.ts")]),e._v(").")]),e._v(" "),o("p",[e._v("Unlike "),o("code",[e._v("$event")]),e._v(", "),o("code",[e._v("$context")]),e._v(" is read-only. Attempting to modify "),o("code",[e._v("$context")]),e._v(" will not throw an error, but it will have no effect.")]),e._v(" "),o("h2",{attrs:{id:"contents-of-context"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#contents-of-context"}},[e._v("#")]),e._v(" Contents of "),o("code",[e._v("$context")])]),e._v(" "),o("p",[o("code",[e._v("$context")]),e._v(" contains the following properties:")]),e._v(" "),o("ul",[o("li",[o("code",[e._v("id")]),e._v(": a unique identifier tied to the current execution.")]),e._v(" "),o("li",[o("code",[e._v("ts")]),e._v(": the timestamp the execution began, represented in "),o("a",{attrs:{href:"https://en.wikipedia.org/wiki/ISO_8601",target:"_blank",rel:"noopener noreferrer"}},[e._v("ISO 8601 format"),o("OutboundLink")],1)]),e._v(" "),o("li",[o("code",[e._v("pipeline_id")]),e._v(": the unique identifier of the current workflow.")]),e._v(" "),o("li",[o("code",[e._v("deployment_id")]),e._v(' : every workflow version creates a new "deployment" of your workflow. The '),o("code",[e._v("deployment_id")]),e._v(" is a unique identifier that represents the version of the workflow tied to the current execution.")]),e._v(" "),o("li",[o("code",[e._v("platform_version")]),e._v(": an integer tied to the current structure of "),o("code",[e._v("$context")]),e._v(". If the structure of "),o("code",[e._v("$context")]),e._v(" changes in the future, this integer will increment and changes to the structure will be communicated in our docs. The current "),o("code",[e._v("platform_version")]),e._v(" is "),o("strong",[e._v("2")]),e._v(".")]),e._v(" "),o("li",[o("code",[e._v("source_type")]),e._v(": a string that represents the source of the event that triggered this execution.")]),e._v(" "),o("li",[o("code",[e._v("verified")]),e._v(": a Boolean value representing whether the request to the Pipedream API to trigger this execution was properly signed. This will be "),o("code",[e._v("false")]),e._v(" for all HTTP requests that hit Webhook sources directly, without an API key, since those do not utilize the API.")])])])}),[],!1,null,null,null);t.default=r.exports}}]);