I have a situation where I'm struggling to put together the correct components of String variables, addDays, expressions and logic. Wondering if someone could basically help me get started with suggesting what the proper components might be.
Does this make sense - what I'm trying to do? If today is March 1st, and the DueDate configuration (coming from that single sharepoint record) is March 4th, and the DaysBeforeDueDateToNotify configuration (coming from that single sharepoint record) is 3, then 4th minus 3 = 1st = YES we want to "do stuff".
I'm just struggling with the dates, vs. strings, vs. variables, and expressions for the conditional logic.
PS - another way I would be fine structuring this would be:
That's all
Solved! Go to Solution.
You can use a Filter array step to filter your SharePoint list items based on your due date column and a given # days from today (utcNow()). Example syntax is below. Replace 5 with your # of days variable. Use greaterOrEquals or lessOrEquals depending on the order you prefer.
To learn more about the Power Platform, follow me on Twitter or subscribe on YouTube.
You can use a Filter array step to filter your SharePoint list items based on your due date column and a given # days from today (utcNow()). Example syntax is below. Replace 5 with your # of days variable. Use greaterOrEquals or lessOrEquals depending on the order you prefer.
To learn more about the Power Platform, follow me on Twitter or subscribe on YouTube.
Thanks - I am getting close. I now have a condition where I want two things to be true: that the column Date_Stage5 is null, and the column DateReminderSent_Stage5 is null.
Recently, in this post , I established (and have proved true), that an acceptable syntax for one of those conditions is: (Date_Stage5 eq null) (just like that - case sensitive and including parenthesis).
So, in this time, I have tried (in the ODATA filter portion of GetItems): and((Date_Stage5 eq null),(DateReminderSent_Stage5 eq null))
but the error is: The function operator 'and' is not supported or its usage is invalid.
(I've also tried and with the @ sign, like @And, but get: The expression "@and((Date_Stage5 eq null),(DateReminderSent_Stage5 eq null))" is not valid. Creating query failed.
Addition: I solved this problem for the moment by eliminating the ODATA filter (bringing in the whole list), and THEN in my 'action' part of the flow, having a Condition - 3 of them actually - including 2 about those two columns being equal to null. That worked fine, but I still yearn to have a better grasp of ODATA expressions, as they seem like the most picky syntax thing ever...but quite handy.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
14 | |
13 | |
11 | |
10 | |
9 |
User | Count |
---|---|
31 | |
21 | |
16 | |
14 | |
12 |