Power Automate ODATA filter failure when field named ‘Date’

image

So, I was doing some testing with a new Flow in Power Automate. What I wanted it to do was, at a recurring time each day, look for today’s date in a list of SharePoint items and then display other values from any matching record in a Team’s chat. To prototype this out I created a very simple list with two columns, as shown above, Title and Date. Remember, the Title field is generally created for you by default when you create a basic SharePoint List.

image

In Power Automate I used a SharePoint Get Items action as shown above to get the information I wanted. To filter down to the data I used on ODATA query like:

Date eq ‘2021-12-31’

to test. Problem was, as shown above, I was getting no results that were feeding through to the next Apply to each action that followed directly after.

There were no errors indicated in my Flow. I tried a number of different format options and so on, trying to work out what the issue was.

image

The issue turned out to be the name of the field – Date – I had created in my SharePoint List! Once I created a new column called Dateoption with the same format, and entered the same data into it and removed the offending Date column, it successfully filtered data as expected and passed the result to the following Apply to each action as you can see above.

The moral of the story is that you should probably avoid naming your fields with any ‘reserved’ programming commands like ‘Date’ as I did. Make it something unique like ‘Datefield’ or whatever. Just don’t use a common term like ‘Date’ as I did or you might struggle to troubleshoot as I did here.

Hopefully, this will save you wasting the amount of time I did to solve this that you can better spend on creating your Flow!

Need to Know podcast–Episode 281

In this last episode for 2021 I share my thoughts about what we have seen from the Microsoft Cloud this year and what we may see in the next. Love to hear what you think as well so please reach out.

Take a listen and let us know what you think – feedback@needtoknow.cloud

You can listen directly to this episode at:

https://ciaops.podbean.com/e/episode-281-review/

Subscribe via iTunes at:

https://itunes.apple.com/au/podcast/ciaops-need-to-know-podcasts/id406891445?mt=2

The podcast is also available on Stitcher at:

http://www.stitcher.com/podcast/ciaops/need-to-know-podcast?refid=stpr

Don’t forget to give the show a rating as well as send me any feedback or suggestions you may have for the show.

This episode was recorded using Microsoft Teams and produced with Camtasia 2020.

Brought to you by www.ciaopspatron.com

Resources

@directorcia

Need to Know podcast–Episode 280

I’m joined by Vic Perdana from Microsoft to speak about Azure cost management. Many people have shied away from Azure over price blow out concerns. The good news is that Azure has all the tools you need to successfully manage your costs and with the help of some techniques that Vic shares with us in this podcast, you should never have to worry again.

As the end of year approaches, I share a little bit of news and updates as well as taking this opporunity to thank everyone for listening in 2021 and stay tuned for more in 2022.

Take a listen and let us know what you think – feedback@needtoknow.cloud

You can listen directly to this episode at:

https://ciaops.podbean.com/e/episode-280-vic-perdana/

Subscribe via iTunes at:

https://itunes.apple.com/au/podcast/ciaops-need-to-know-podcasts/id406891445?mt=2

The podcast is also available on Stitcher at:

http://www.stitcher.com/podcast/ciaops/need-to-know-podcast?refid=stpr

Don’t forget to give the show a rating as well as send us any feedback or suggestions you may have for the show.

This episode was recorded using Microsoft Teams and produced with Camtasia 2020.

Brought to you by www.ciaopspatron.com

Resources

Vic Perdana – Microsoft Cloud Solution Architect, viperdan@microsoft.com, Twitter, Linkedin

Overview of Azure Cost Management + Billing | Microsoft Docs

Transfer Azure subscriptions between subscribers and CSPs | Microsoft Docs

Cloud Cost Optimisation | Microsoft Azure

Track costs across business units, environments, or projects – Cloud Adoption Framework | Microsoft Docs

Tutorial – Create and manage Azure budgets | Microsoft Docs

Migration and IaaS vs. PaaS

About Azure Migrate – Azure Migrate | Microsoft Docs

What is PaaS? Platform as a Service | Microsoft Azure

Others

Azure Arc – Hybrid and multicloud management | Microsoft Azure

Azure Blog and Updates | Microsoft Azure

Cost Management · Community (azure.com) – this is where you can shape Azure Cost Management

Microsoft for Startups

The final report on NOBELIUM’s unprecedented nation-state attack

Microsoft Defender for Business preview now available

OneDrive sync for native ARM devices now in public preview

What’s New in Microsoft Teams | November 2021

Windows 365 Business supports Windows 11 and enhanced admin capabilities

More security testing options with sec-test

image

I’ve added three more security testing options to my free script here:

https://github.com/directorcia/Office365/blob/master/sec-test.ps1

The Word document Backdoor drop will download and open a Word document that contains a macro that will itself, download an EXE file to the desktop.

The PowerShell script fileless attack if successful will open Notepad.exe on the device.

The Dump credentials using SQLDumper.exe will download the SQL utility SQLDumper.exe and use that to try and dump the credentials from the the system LSASS.EXE process.

All the tests are benign and designed to firstly, test your environment again common breach techniques and secondly, to generate alerts in your environment to ensure your protection is correctly configured.

It is getting hard for me to determine all the outcomes of these tests, so I’d love to hear any feedback you have on your own results so I can improve the script. Also, if you have any suggestions for what tests you’d like to see included please let me know.

CIAOPS Tech Dojo–January 2022

pexels-pixabay-46253

In next month’s Tech Dojo, since it is still the holiday season, we take a look at doing a Crypto 101 session. You’ll learn about coins, storage, NFTs, smart contracts and more. All for information and not investment advice. Come learn about the exciting world of blockchain.

Costs:

Non CIAOPS Patrons = AU$99 inc GST

Date:

Wednesday January 12th 0930 – 1100 Sydney AU time

If you are interested in attending please complete the expression of interest here:

https://bit.ly/ciapatrondojo

and you’ll be sent more details of the event.