{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Journeys","product":"Identity Management","type":"markdown"},"seo":{"title":"Expressions: Variables","description":"Everything about Mosaic Journeys, SDKs, and APIs","siteUrl":"https://developer.transmitsecurity.com/","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"expressions-variables","__idx":0},"children":["Expressions: Variables"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Expressions may refer to variables to obtain runtime values. The variables accessible to an expression depend on the evaluation context. For example, expressions appearing within a journey will be able to access all variables defined in the journey via the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/orchestration/journeys/set_temporary_variables"},"children":["Set Temporary Variables"]}," step. Similarly, expressions appearing in a function definition such as a web request definition will be able to access parameters declared for the function as variables."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To reference a variable in an expression, its name is specified in the expression. For example, to refer to the variable named ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["user"]},", use the expression ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["user"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"set-temporary-variables","__idx":1},"children":["Set temporary variables"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can use the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/orchestration/journeys/set_temporary_variables"},"children":["Set Temporary Variables"]}," step to set new variables in the journey. These will be available for use in expressions for subsequent journey steps."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"invoke-custom-http","__idx":2},"children":["Invoke Custom HTTP"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/orchestration/journeys/invoke_a_web_service"},"children":["Invoke Custom HTTP"]}," step is similar to the ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Set Temporary Variable"]}," step and provides a simplified UI-based view to invoking a Web Service Function and storing its result in a temporary variable."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The result will always be an object with two keys – ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["body"]},". ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," is numeric HTTP status code of the response while ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["body"]}," contains the response of the web service invocation. For example, successful invocation of web service configured with JSON response format may look as follows:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n   \"status\" : 200, \n   \"body\": { \n      \"result\": \"ok\", \n      \"count\":1\n   }\n}\n","lang":"json"},"children":[]}]},"headings":[{"value":"Expressions: Variables","id":"expressions-variables","depth":1},{"value":"Set temporary variables","id":"set-temporary-variables","depth":2},{"value":"Invoke Custom HTTP","id":"invoke-custom-http","depth":2}],"frontmatter":{"showNextButton":true,"showPrevButton":true,"seo":{"title":"Expressions: Variables"}},"lastModified":"2025-11-18T16:48:04.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/guides/orchestration/getting-started/expressions/variables","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}