Skip to content

Commit 073b5e4

Browse files
Merge pull request #297683 from ecfan/patch-1
[Content Health] Create Consumption workflow in Azure portal: Update RSS URL and steps
2 parents 445d389 + 2ccd8af commit 073b5e4

File tree

5 files changed

+24
-13
lines changed

5 files changed

+24
-13
lines changed
1.77 KB
Loading
32.3 KB
Loading
5.5 KB
Loading

articles/logic-apps/quickstart-create-example-consumption-workflow.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.reviewer: estfan, azla
77
ms.topic: quickstart
88
ms.custom: mode-ui
99
ms.collection: ce-skilling-ai-copilot
10-
ms.date: 02/18/2025
10+
ms.date: 04/04/2025
1111
#Customer intent: As a developer, I want to create my first example Consumption logic app workflow that runs in multitenant Azure Logic Apps using the Azure portal.
1212
---
1313

@@ -125,7 +125,7 @@ This example uses an RSS trigger that checks an RSS feed, based on the specified
125125

126126
| Property | Required | Value | Description |
127127
|----------|----------|-------|-------------|
128-
| **The RSS feed URL** | Yes | <*RSS-feed-URL*> | The RSS feed URL to monitor. <br><br>This example uses the Wall Street Journal's RSS feed at **https://feeds.a.dj.com/rss/RSSMarketsMain.xml**. However, you can use any RSS feed that doesn't require HTTP authorization. Choose an RSS feed that publishes frequently, so you can easily test your workflow. |
128+
| **The RSS feed URL** | Yes | <*RSS-feed-URL*> | The RSS feed URL to monitor. <br><br>This example uses the Wall Street Journal's RSS feed at **https://feeds.content.dowjones.io/public/rss/RSSMarketsMain**. However, you can use any RSS feed that doesn't require HTTP authorization. Choose an RSS feed that publishes frequently, so you can easily test your workflow. |
129129
| **Chosen Property Will Be Used To Determine Which Items are New** | No | **PublishDate** | The property that determines which items are new. |
130130
| **Interval** | Yes | **30** | The number of intervals to wait between feed checks. <br><br>This example uses **30** as the interval because this value is the [minimum interval for the **RSS** trigger](/connectors/rss/#general-limits). |
131131
| **Frequency** | Yes | **Minute** | The unit of frequency to use for every interval. <br><br>This example uses **Minute** as the frequency. |
@@ -134,21 +134,31 @@ This example uses an RSS trigger that checks an RSS feed, based on the specified
134134

135135
:::image type="content" source="media/quickstart-create-example-consumption-workflow/add-rss-trigger-settings.png" alt-text="Screenshot shows the RSS trigger settings, including RSS URL, frequency, interval, and others." lightbox="media/quickstart-create-example-consumption-workflow/add-rss-trigger-settings.png":::
136136

137-
1. On the designer toolbar, select **Code view**.
137+
1. Save your workflow. On the designer toolbar, select **Save**.
138138

139-
1. In the code editor, find the line **`"feedUrl": "@{encodeURIComponent(encodeURIComponent(`https://feeds.a.dj.com/rss/RSSMarketsMain.xml'))}"`**.
139+
This step automatically publishes your logic app resource and workflow live in the Azure portal. However, the workflow doesn't do anything yet other than fire the trigger to check the RSS feed, based on the specified schedule. In a later section, you add an action to specify what you want to happen when the trigger fires.
140140

141-
1. Remove the extra function named **`encodeURIComponent()`** so that you have only one instance, for example:
142-
143-
**`"feedUrl": "@{encodeURIComponent('https://feeds.a.dj.com/rss/RSSMarketsMain.xml')}"`**
141+
1. Due to this **RSS** trigger's default double-encoding behavior, you have to edit the trigger definition and manually remove this behavior:
142+
143+
1. On the *designer* toolbar, select **Code view**.
144+
145+
> [!IMPORTANT]
146+
>
147+
> Don't select the **Code view** tab in the trigger information pane. This tab opens code view in read-only mode.
144148
145-
This change is necessary to remove double-encoding behavior, which requires manual correction.
149+
1. In the code editor, find the line **`"feedUrl": "@{encodeURIComponent(encodeURIComponent('https://feeds.content.dowjones.io/public/rss/RSSMarketsMain'))}"`**.
150+
151+
1. Remove the extra function named **`encodeURIComponent()`** so that you have only one instance, for example:
146152

147-
1. Switch back to the designer.
153+
**`"feedUrl": "@{encodeURIComponent('https://feeds.content.dowjones.io/public/rss/RSSMarketsMain')}"`**
148154

149-
1. Save your workflow. On the designer toolbar, select **Save**.
155+
1. Save the changes that you made. On the code editor toolbar, select **Save**.
156+
157+
Every time that you save changes to your workflow in the designer or code editor, Azure instantly publishes those changes live in the Azure portal.
158+
159+
1. Return to the designer. On the code editor toolbar, select **Designer**.
150160

151-
This step instantly publishes your logic app resource and workflow live in the Azure portal. However, the trigger only checks the RSS feed without taking any other actions. So, you need to add an action to specify what you want to happen when the trigger fires.
161+
In the next section, you specify the action to take when the trigger condition is met, which causes the trigger to fire.
152162

153163
<a name="add-email-action"></a>
154164

articles/logic-apps/quickstart-create-logic-apps-visual-studio-code.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Before you start, make sure that you have these items:
157157
"When_a_feed_item_is_published": {
158158
"recurrence": {
159159
"frequency": "Minute",
160-
"interval": 1
160+
"interval": 30
161161
},
162162
"splitOn": "@triggerBody()?['value']",
163163
"type": "ApiConnection",
@@ -170,7 +170,8 @@ Before you start, make sure that you have these items:
170170
"method": "get",
171171
"path": "/OnNewFeed",
172172
"queries": {
173-
"feedUrl": "http://feeds.reuters.com/reuters/topNews"
173+
"feedUrl": "@{encodeURIComponent('https://feeds.content.dowjones.io/public/rss/RSSMarketsMain')}",
174+
"sinceProperty": "PublishDate"
174175
}
175176
}
176177
}

0 commit comments

Comments
 (0)