List code below is not able to run, any idea how to fix it? Thanks!
ClearCollect( colInfoEmailList, { Name: "", Mail: "", UPN: "", Type: "" } );
// Loop through the EmailArray and check each email address
ForAll(
Split("UserA@gmail.com;UserB@gmail.com", ";"),
// Get the user profile information using the Office365Users connector
Set(UserProfile, Office365Users.UserProfileV2(Result));
// Check if the user profile is blank or not
If(
// If not blank, add the user profile information and the type column to the Collection
!IsBlank(colInfoEmailList),
Collect(
colInfoEmailList,
{
DisplayName: UserProfile.displayName,
Mail: UserProfile.mail,
UserPrincipalName: UserProfile.userPrincipalName,
Type: "User"
}
)
)
);