cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
alexaristide
Helper I
Helper I

Flow

I am trying to do a flow that sends a birthday email to all users in my domain. The condition says that if the current date contains the date of birth (day and month),

 

 

If string(item()) contains string(formatDateTime(utcNow(),'MM-dd"'))

 

But the flow shows me this error:

 

InvalidTemplate. No se pueden procesar las expresiones de lenguaje de plantilla para la acción 'Condición' en la línea '1' y la columna '2646': 'No se admite el parámetro de formato "MM-dd"" de la función de lenguaje de plantilla "formatDateTime". El formato debe ser un carácter especificador de formato único y válido (como "d" o "g") o un patrón de formato personalizado válido (como "'MMMM dd, yyyy" o "hh:mm:ss.ff"). Para obtener información, consulte las cadenas de formato de fecha y hora estándar y las cadenas de formato de fecha y hora personalizadas de .NET Framework.'.

 

Could somebody help me out

thanks

1 ACCEPTED SOLUTION

Accepted Solutions
ScottShearer
Super User III
Super User III

@alexaristide 

It looks like you have a double quote at the end of you date format - remove it and I think that will resolve the issue.

DoubleQuote.jpg

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

2 REPLIES 2
ScottShearer
Super User III
Super User III

@alexaristide 

It looks like you have a double quote at the end of you date format - remove it and I think that will resolve the issue.

DoubleQuote.jpg

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

v-alzhan-msft
Community Support
Community Support

Hi @alexaristide ,

 

Please take a try with expression below if you want the minute to be 0:

formatDateTime(utcNow(),'yyyy-MM-ddTHH:00:ssZ')

 

Have your problem been solved according to my solution?  If yes, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (30,214)