Jeff Hollan Derek Li Program Manager Microsoft Azure

  • Slides: 21
Download presentation
Jeff Hollan / Derek Li Program Manager – Microsoft Azure Logic Apps – Advanced

Jeff Hollan / Derek Li Program Manager – Microsoft Azure Logic Apps – Advanced integration patterns

Azure Logic Apps Advanced Integration Patterns Jeff Hollan Derek Li

Azure Logic Apps Advanced Integration Patterns Jeff Hollan Derek Li

 • Type. Script/React app • Uses Open. API (Swagger) to render inputs &

• Type. Script/React app • Uses Open. API (Swagger) to render inputs & outputs • Generates workflow definition (JSON)

Workflow Expressions Any input that will be dynamic (change every run) is an expression

Workflow Expressions Any input that will be dynamic (change every run) is an expression @trigger. Body() @guid() @json() @body(‘action. Name’) @items() @utcnow() @rand(0, 2) @xml() @form. Data. Value(‘action. Name’)

@ Used to indicate an expression, can be escaped with @@ e. g. @Utc.

@ Used to indicate an expression, can be escaped with @@ e. g. @Utc. Now()

() Encapsulate expression parameters e. g. @length(‘Hello World’)

() Encapsulate expression parameters e. g. @length(‘Hello World’)

{} Curly braces means string. Same as doing @string(), but allows for interpolation e.

{} Curly braces means string. Same as doing @string(), but allows for interpolation e. g. This is @{add(1, 1)} == @concat(‘This is ’, string(add(1, 1)))

[] Used to parse properties in JSON objects e. g. @body(‘Json. Body’)[‘person’][‘address’][‘street. Name’] ��

[] Used to parse properties in JSON objects e. g. @body(‘Json. Body’)[‘person’][‘address’][‘street. Name’] ��

[] Used to parse properties in JSON objects e. g. @body(‘Xml. Response’)[‘not’][‘xpath’] ☹�

[] Used to parse properties in JSON objects e. g. @body(‘Xml. Response’)[‘not’][‘xpath’] ☹�

[] Used to parse properties in JSON objects e. g. @xpath(body(‘Xml. Response’), ‘/this/is/good’) ��

[] Used to parse properties in JSON objects e. g. @xpath(body(‘Xml. Response’), ‘/this/is/good’) ��

[] Used to parse properties in JSON objects e. g. @json(xml(body(‘Xml. Response’)))[‘this’][‘works’][‘too’] ��

[] Used to parse properties in JSON objects e. g. @json(xml(body(‘Xml. Response’)))[‘this’][‘works’][‘too’] ��

contains(tolower(trigger. Body()['user']['display. Name']), 'jeff’) trigger. Body()[‘user’][‘display. Name’] tolower(trigger. Body()[‘user’][‘display. Name’] ) contains(tolower(trigger. Body() [‘user’][‘display.

contains(tolower(trigger. Body()['user']['display. Name']), 'jeff’) trigger. Body()[‘user’][‘display. Name’] tolower(trigger. Body()[‘user’][‘display. Name’] ) contains(tolower(trigger. Body() [‘user’][‘display. Name’] ), ‘jeff’)