Notifications
Announcements
Send an email (V2) ├── To: @{items('Apply_to_each')?['Email']?['DisplayName']} ├── Subject: [Your Subject] ├── Body: [Your Body]
Send an email (V2) ├── To: @{items('Apply_to_each')?['Email']?['Claims']} ├── Subject: [Your Subject] ├── Body: [Your Body]
Send an email (V2) ├── To: @{items('Apply_to_each')?['Email']?['Email']} ├── Subject: [Your Subject] ├── Body: [Your Body]
Compose: Debug Email Value ├── Value: @{items('Apply_to_each')?['Email']}
// If Compose shows: {"ashton.coulter@htb.com":""} Send an email (V2) ├── To: @{first(split(string(items('Apply_to_each')?['Email']), ':'))} // If Compose shows: {"Email":"ashton.coulter@htb.com"} Send an email (V2) ├── To: @{items('Apply_to_each')?['Email']?['Email']} // If Compose shows: {"DisplayName":"ashton.coulter@htb.com"} Send an email (V2) ├── To: @{items('Apply_to_each')?['Email']?['DisplayName']}
Get items (Excel) ├── Location: [Your Excel File Location] ├── Document Library: [Your Document Library] ├── File: [Your Excel File] ├── Table: [Your Table Name] Apply to each ├── Select: value (from Get items) ├── Actions: ├── Condition: Check Date │ ├── Expression: @{equals(formatDateTime(items('Apply_to_each')?['Date'], 'yyyy-MM-dd'), formatDateTime(utcNow(), 'yyyy-MM-dd'))} │ ├── IF YES: │ │ ├── Compose: Extract Email │ │ │ ├── Value: @{coalesce(items('Apply_to_each')?['Email']?['DisplayName'], items('Apply_to_each')?['Email']?['Claims'], items('Apply_to_each')?['Email']?['Email'], string(items('Apply_to_each')?['Email']))} │ │ │ │ │ ├── Condition: Validate Email │ │ │ ├── Expression: @{and(not(empty(outputs('Extract_Email'))), contains(outputs('Extract_Email'), '@'))} │ │ │ ├── IF YES: │ │ │ │ ├── Send an email (V2) │ │ │ │ │ ├── To: @{outputs('Extract_Email')} │ │ │ │ │ ├── Subject: [Your Subject] │ │ │ │ │ ├── Body: [Your Body] │ │ │ ├── IF NO: │ │ │ │ ├── Send an email (V2) [Error Notification] │ │ │ │ │ ├── To: [Your Admin Email] │ │ │ │ │ ├── Subject: "Invalid Email Found" │ │ │ │ │ ├── Body: "Invalid email for row: @{items('Apply_to_each')}"
Compose: Advanced Email Extraction ├── Value: @{ if( contains(string(items('Apply_to_each')?['Email']), '@'), if( contains(string(items('Apply_to_each')?['Email']), '":""'), first(split(string(items('Apply_to_each')?['Email']), '":"')), if( contains(string(items('Apply_to_each')?['Email']), 'DisplayName'), items('Apply_to_each')?['Email']?['DisplayName'], string(items('Apply_to_each')?['Email']) ) ), 'invalid@email.com' ) } // Clean the extracted email Compose: Clean Email ├── Value: @{replace(replace(replace(outputs('Advanced_Email_Extraction'), '{"', ''), '"', ''), '}', '')} Send an email (V2) ├── To: @{outputs('Clean_Email')}
Send an email (V2) ├── To: [Manually type the email to test] ├── Subject: Test ├── Body: This is a test
Send an email (V2) [Office 365 Outlook] ├── To: @{outputs('Clean_Email')} ├── Subject: [Your Subject] ├── Body: [Your Body]
If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍. Regards, Riyaz
replace(replace(replace(replace(items('Apply_to_each'), '{"', ''), '"', ''), '}', ''), ':', '')
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 501 Super User 2025 Season 2
Tomac 323 Moderator
abm abm 237 Most Valuable Professional