I would like to create a collection that contains the resource rooms in our tennant.
First data source: "Rooms"
ClearCollect(Rooms,Office365Outlook.GetRoomsV2().value)
This gives you a name of the calendar and address field.
Second data source: "CalendarIDs"
ClearCollect(CalendarIDs, Office365Outlook.CalendarGetTablesV2().value)
This gives you ID and tha name of the calendar.
In the end I Create collection called "CalendarsDataSource"
ClearCollect(
CalendarsDataSource,
{
Id: LookUp(
Office365Outlook.CalendarGetTablesV2().value,
"Luna" = name,
id
),
Name: LookUp(
Office365Outlook.CalendarGetTablesV2().value,
"Luna" = name,
name
),
Address: LookUp(
Office365Outlook.GetRoomsV2().value,
"Luna" = name,
address
)
}
)
This will merge the two data source and gives a table with the address, calendar's ID and name
There are tons of rooms in our tenant so I would like to insert this in a ForAll() function