@Appleonwindows
Are you currently operating within a flow with Power FX enabled?
Please try copying and pasting the provided code to verify if it functions correctly.

Code:
DateTime.GetCurrentDateTime.Local DateTimeFormat: DateTime.DateTimeFormat.DateAndTime CurrentDateTime=> CurrentDateTime
SET Dayofweek TO CurrentDateTime.DayOfWeek
Are you new to Power Automate Desktop and unsure how to copy and paste the code provided?

Thanks,
Deenuji Loganathan 👩💻
Automation Evangelist 🤖
Follow me on LinkedIn 👥
-------------------------------------------------------------------------------------------------------------
If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀. If you'd like to appreciate me, please write a LinkedIn recommendation 🙏