Announcements
I HAVE A CHOICE FIELD WHERE THEY HAVE:
- 30 MIN- 60 MIN- 90 MIN
I WOULD LIKE TO MAKE THE END DATE OF THE EVENT WITH THE SUM OF THE DATE + THE CHOSEN DURATION TIME, WOULD IT HAVE?
@Gorilla_8 ,
You need to be more specific about your scenario. It's your datesource a Sharepoint list ? A dataverse table ?
Are involved all items from the datasource or only a specific one ? What is the trigger of the flow ?
Oh, sorry @gabibalaban
It's a Sharepoint list, just one item each time.
I just need to convert the value on the choice column to get the '30' or '60 or '90' and add on my 'create event v4' - endtime
It should be something like:
addMinutes( triggerBody()?['Date'], int(triggerBody()?['ChoiceColumn/Value']), 'yyyy-MM-ddTHH:mm:ss' )
I supposed that all values (Date - StartDate and ChoiceColumn - i didn't get its name) are taken from the trigger. So please replace in my formula Date with your event StartDate column and ChoiceColumn with the name of the ChoiceColumn.
Hope it helps !
@gabibalaban
Thanks @gabibalaban
I tried with to convert the choice column, but I got an erro with 'int'
please share the error.... and a picture of the action.
Here:InvalidTemplate. Unable to process template language expressions in action 'Initialize_variable_2' inputs at line '1' and column '27463': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.
Well you didn't mention anything about " min" in your choice field. I'll supose that 60 and 90 are also with " min" at the end.
addMinutes( triggerBody()?['Date'], int(replace(triggerBody()?['ChoiceColumn/Value'],' min','')), 'yyyy-MM-ddTHH:mm:ss' )
I post the 'MIN' on my post, but no problem, didn't work as expected, got an error again
There is no way to convert the choice column on a int and put the value to add on date?
This is the way:
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 315 Super User 2026 Season 2
Mohsin Ali 267
Henil 115