![]() ![]() ![]() This list makes these outputs easier to use and reference from your workflow. The dynamic content list shows the outputs from the trigger and any preceding actions when those outputs match the input format for the edit box that's currently in focus. With your cursor still in the Code box, from the open dynamic content list, find the When a new email arrives section, and select the Body property, which references the email message's body. ![]() The code then creates a variable named email that stores the email message's body content from the trigger outputs. The following example code snippet first creates a variable named myResult that stores a regular expression, which specifies a pattern to match in input text. If you start typing a recognized keyword, the autocomplete list appears so that you can select from available keywords, for example: Use this list later, you can ignore and leave the list open for now. When your cursor is in the Code box, the dynamic content list appears. The following diagram shows the highlights from example workflow: The sample code snippet extracts any email addresses that exist the email body and returns those addresses as output that you can use in a subsequent action. The workflow runs when a new email arrives in the associated Outlook email account. This article shows how the action works in an example workflow that starts with an Office 365 Outlook trigger. To run code that doesn't fit these attributes, you can create and call a function through Azure Functions instead. Doesn't support the require() function for running JavaScript. Doesn't require working with the Variables actions, which are unsupported by the action. Actionįor more information, review Standard built-in objects. The Inline Code built-in connector also hasĭifferent limits, based on whether your logic app workflow is Consumption or Standard. This connector has an action that returns the result from the code snippet so that you can use that output in your workflow's subsequent actions.Ĭurrently, the connector only has a single action, which works best for a code snippet with the following attributes, but more actions are in development. To create and run a code snippet in your logic app workflow without much setup, you can use the Inline Code built-in connector. Applies to: Azure Logic Apps (Consumption + Standard) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |