I have a SP list called "Training Class Details". The list has a date field for the first day of training. The subsequent 15 days of training are calculated date fields based on that first day, excluding weekends. Each date of training also has it's own training start time and training end time (i.e. Day 1 Date, Day 1 Start Time, Day 1 End Time, Day 2 Date, Day 2 Start Time, Day 2 End Time, etc.) I'm using Power Automate to create Outlook events for each of the 16 training dates for each class.
I have the flow working but I'm having to format each date column to remove the time stamp then concat the formatted date with the start time, and concat the formatted date with the end time in 3 separate actions in order to pull in the formatted date/time output for each Outlook event.
I think there may be a more streamlined way to set up my SP columns, but I'm not sure.
If I keep the SP columns the way they are, is there a way in Power Automate to build an array or do a "for each" loop to format each of the date, start time, and end time columns in one action?
Is there also a way to create each of the 16 events in a "for each" action?
Thanks for your help!
You can do a select and format every column like below...
concat(string(formatDateTime(item()?['Created'], 'mm/dd/YYYY')), item()?['Time'])
Thank you. That helps. I also figured out how to add a calculated column on my SP list which combines the Day and time columns into one.
Do you know of a way to loop through each training date and create an event for each without having to have a "create event" action for each event?
Thanks!
User | Count |
---|---|
94 | |
39 | |
24 | |
22 | |
16 |
User | Count |
---|---|
128 | |
49 | |
48 | |
32 | |
24 |