The workflow expression language and content types

With Logic Apps, you can work with multiple content types, such as JSON, XML, Base64, and more. Logic Apps has built-in functions that are used within workflow expressions for conversion, transformation, and translation. For example, you can convert strings such as JSON and XML to @json() and @xml() workflow function expressions.

The following table displays the various content types along with casting types. You can also combine these content type functions to translate messages in your desired format:

Function

Cast operations

json()

Translates data to application/JSON

xml()

Translates data to application/XML

binary()

Translates data to application/octet-stream

Get Serverless Integration Design Patterns with Azure now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.