I have a custom web api method written in C# that accepts DateTime argument.
public int GetUpdateCount(DateTime lastDate, string category) { ... }
When I tried to call api method in my PowerApps application and use Now() function
MyApi.NewsGetUpdateCount(Now(), "category")
I got the error that first argument has to be of type Text. So I tried
MyApi.NewsGetUpdateCount(Text(Now(), "yyyy-MM-dd HH:mm:ss"), "category"))
But now I get an error from my server: A potentially dangerous Request.Path value was detected from the client ( : ). Which is, as I guess, because of colon marks (HH:mm:ss). How do I properly send a DateTime value to my api?

Report
All responses (
Answers (