Skip to content

Commit

Permalink
Merge pull request #148 from World-of-Workflows/Jim-edits9July
Browse files Browse the repository at this point in the history
liquid ref update
  • Loading branch information
jimcantor committed Jul 12, 2024
2 parents 5a3abbe + aed0a52 commit ff9d4d6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 22 additions & 1 deletion docs/24_reference/01-liquid/expressions-in-workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,28 @@ For example, given a workflow variable called FirstName with a value of "Alice",
```liquid
Hello {{ Variables.FirstName }}
```
will result in ```Hello Alice```.
will result in ```Hello Alice```

## Using JSON variables
If your workflow variable is a JSON object, use this syntax:

```liquid
{{ Variables.NameOfVariable | json | raw}}
```

For example:
You have an API that returns a list of companies in JSON.
You create an HTTP Request activity that calls the API, returning JSON.
You can use this JavaScript to create your variable Companies:
`activities.getCompanies.ResponseContent()`

In this case you will use this syntax in your HTTP Response to use the variable `Companies`:
```liquid
{{ Variables.Companies | json | raw}}
```




### Input
Input values can be accessed using the following syntax:
Expand Down

0 comments on commit ff9d4d6

Please sign in to comment.