I need some help for creating an flow that should create a calendar event.
My flow should look in my calendar for new events created and create a new calendar event in dependency to the new event.
First I check for the event subject to filter for some special contents and that is where my problems start.
In my first condition check I have used the following filter "@or(contains(triggerBody()?['Subject'], 'FIRST'),contains(triggerBody()?['Subject'], 'SECOND'),contains(triggerBody()?['Subject'], 'THIRD'))"
So it should check for the event subject if one of the three contents is inside that and go on with the flow or not...
But when creating an event I get a failure message:
" Unable to process template language expressions for action 'check_subject' at line '1' and column '2469': 'The template language function 'contains' expects its first argument 'collection' to be a dictionary (object), an array or a string. The provided value is of type 'Null'.'. "
From that message I would assume that the subject is empty, but it's not... at least not the event I've created
Maybe someone can also tell me how to dig a little deeper in some logs fom MS flow, because I cannot see what event that flow is just processing.
Thanks in advance.
Do you want to create an event in a new calendar when an event contains specific subject is created in your calendar?
I have made the following flow, the condition is configured likes below:
@or(contains(triggerBody()?['Subject'], 'FIRST'),contains(triggerBody()?['Subject'], 'SECOND'),contains(triggerBody()?['Subject'], 'THIRD'))
It just works fine if the subject of the new event contains FIRST/SECOND/THIRD.
Please make sure the event does have a subject and try again with it.
Well I used another event trigger "When an event is added, updated oder deleted" and changed it now.
Although it should have worked as I now haven't used any other filter for my first condition check, than only changing the trigger to "When a new event is created", as this would make more sense than my selection before...
but never the less, it should have worked with the other flow too...
So I think at first it is solved by changing my trigger to the other one, that fits more.
so thanks for that indirect hint 😉 as I saw the "When a new event is created" from your pictures.
Thank you for posting to the Flow Community Forum! It appears you have found a solution to your issue! If you feel as though your issue has been solved and you are satisfied with one of the previous replies, please click "Accept as Solution" on the reply that contains the solution so that this thread will be marked for other users to easily identify!
Thank you for being an active member of the Flow Community!
Microsoft Flow Community Manager
Join us for the first ever Power Platform Online Conference!
Look out for new contribution recognition badges coming SOON!
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Watch & learn from the Power Automate Community Video Gallery!