Your logic seems correct, so I wonder if the problem is actually with your data.
How are you verifying that the data being returned is incorrect? Are you looking specifically at this attribute or are you looking at another attribute that is more display friendly?
I wonder if the objects have all been set to ‘_2022’ somehow, but you are looking at other data that says it’s for another year.
One way to test this would be to put a breakpoint after the retrieve and specifically check attribute1 for every returned object. I suspect they are all ‘_2022’.
Hi Nagashree,
There’s an easier approach for that. You could have used a getyear function for than and then you could have used that function’s result in the Xpath, this way you could easily have retrieved the data from the database.
Just try doing that,
Hope it helps!
Hi Nagashri,
The expression:
$date >= [%BeginOfCurrentYear%] and $date <= [%EndOfCurrentYear%]
wil retrun all the dates in the current year.
Hope this will help,
Jan
In your microflow retrieve use
[attribute1 = ‘_2022’]
See what happens