I'm just reading the blog post here https://flow.microsoft.com/en-us/blog/fotw-remind-to-post/ and my question is
in the expression
@less(string(first(body('List_all_RSS_feed_items'))['publishDate']), addDays(utcnow(),-10))
How did we know that we had to specify ? ['publishDate] is 'publishdate' a field name in the RSS ? I see PubDate, but not PublishDate ; am I missing something here ?
Thank you
serge Luca
Solved! Go to Solution.
ok; so the answer was that after running the flow, we can see the body content in the flow history. And the action maps pubdate to publishdate
Hi Serge Luca,
This advanced mode condition is for checking to see if any of those posts happened in the last 10 days. The only thing you need to specify is the "-10" number which means how many last days to check.
For better understanding, you can have look at the detailed steps of this template:
This flow will help you to post to your blog on a regular interval. It will look at your Blog every day, and send you an email reminder if there haven't been any posts in the past 10 days. See if this flow could meet your requirement.
About advanced mode in condition, you can use any expression from the Workflow definition language here.
Functions available:
Workflow Definition Language schema for Azure Logic Apps
https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language
Regards,
Mona
Hello Mona,
thank you for the answer.
I'm aware of theWorkflow definition language (WDL) and also that we can specify the number of days in this specific example.
My question is not about how to use this example and to customize it to fit my need, but more about how the author knew that:
in the object returned by the List_all_RSS_feed_item action , the objects stored in the body had a column ['publishDate] ?
When I check the raw RSS (see https://sergeluca.wordpress.com/feed/), I only see "pubdate" and not ['publishDate'] ; does that mean that the List_all_RSS_feed_item action internally create an array of object with a column ['publishDate'] instead of ["pubdate"] as we can find in the raw rss feed for blog post ? If that is the case where is it described in the documentation of this action ? or how did he author of the post knew it ?
This is not described in the WDL documentation.
ok; so the answer was that after running the flow, we can see the body content in the flow history. And the action maps pubdate to publishdate
User | Count |
---|---|
95 | |
45 | |
21 | |
18 | |
18 |
User | Count |
---|---|
142 | |
50 | |
43 | |
40 | |
31 |