web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / how to check blank spa...
Power Automate
Unanswered

how to check blank spaces for when new email trigger from specified emailbox

(1) ShareShare
ReportReport
Posted on by 2,249

Email template which arrives with below format //Incoming email format

 

if i receive Email with below predefined values indexes as per  it works ,please check my flow  but i need some help to remove blank spaces from new email automatically. im not sure how to remove blank spaces if the new email which follows the below email template values

 

Indexes fixed: //so its working but at the same time if its blank spaces exceeds below indexes values its failed

variable 3 expression :last(split(outputs('Compose_2')[6],': '))
variable 4 expression: last(split(outputs('Compose_2')[8],': '))
variable 5 expression: last(split(outputs('Compose_2')[12],': '))

Veblitz_13-1720705888261.png

 

 

Input data structure

 

Contract_List:

Veblitz_14-1720705925604.png

 

Customer-single line of text

Location- single line off text

Typeofcontract-Single line of text

From-single line of text

To-single line of contract

 

document library

Veblitz_15-1720705925510.png

 

 

 

 

 

Complete Flow details:

Veblitz_0-1720705826601.png

 

 

 

Detailed flow steps:

 

Veblitz_1-1720705826606.png

 

 

Veblitz_2-1720705826782.png

 

compose 2 expression-

split(outputs('Html_to_text')?['body'],outputs('Compose'))
Veblitz_3-1720705826798.png

 

 

Veblitz_4-1720705826674.png

 

Detailed step by step condition flow steps

Yes branch flow steps

Veblitz_5-1720705827008.png

 

variable 3 expression :last(split(outputs('Compose_2')[6],': '))
variable 4 expression: last(split(outputs('Compose_2')[8],': '))
variable 5 expression: last(split(outputs('Compose_2')[12],': '))
 
Veblitz_6-1720705826673.png

 

 

Veblitz_7-1720705826683.png

 

create new folder2 expression : concat(variables('Location'),'/',variables('Customer'))
 
Veblitz_8-1720705826616.png

 

 

create new folder 3 expression:

concat(variables('Location'),'/',variables('Customer'),'/',formatDateTime(utcNow(),'yyyy'))
create new folder 4 expression:
concat(variables('Location'),'/',variables('Customer'),'/',formatDateTime(utcNow(),'yyyy'),'/',formatDateTime(utcNow(),'MMMM'))
 
Veblitz_9-1720705827010.png

 

set variable 2 expression:

concat(variables('Location'),'/',variables('Customer'),'/',formatDateTime(utcNow(),'yyyy'),'/',formatDateTime(utcNow(),'MMMM'))
 
Veblitz_10-1720705826685.png

 

create new folder 5 expression:

concat(variables('VarPath'),'/',variables('VarType'))
 
Veblitz_11-1720705826612.png

 

 
No branch:
 
Veblitz_12-1720705826690.png

 

Categories:

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard