I've been experiencing an issue (although I may just be doing it wrong). I'm building a flow that uses a List Records action from the 'Common Data Service (current environment)'. The idea is that we're listing all the campaigns in dynamics with an actual start of today. However, when testing the flow (with a button) I keep getting an error. The flow looks like this:
The expression used in the filter is: formatDateTime(utcNow(),'yyyy-MM-dd')
The following is the filter query when testing:
And the error I get is the following:
I can't figure out what I am doing wrong. Does anyone have an idea how I can execute this, or an alternative for filtering my list records action on today?
Thanks! 🙂
Solved! Go to Solution.
StartsWith() requires that both fields being compared are strings, but I'm assuming that actual start is a date. You'll need to use a formatDateTime on actual start just like you do for UTCNow. Of course if you do that its probably easier to just use equals
StartsWith() requires that both fields being compared are strings, but I'm assuming that actual start is a date. You'll need to use a formatDateTime on actual start just like you do for UTCNow. Of course if you do that its probably easier to just use equals
@Pstork1 Thanks, this helped :)! I just added a Condition, in which I formatted both the actual start and utcNow in the same format, and that worked.
User | Count |
---|---|
95 | |
46 | |
21 | |
18 | |
17 |
User | Count |
---|---|
141 | |
50 | |
43 | |
40 | |
29 |