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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Answered

Split on delimiter

(0) ShareShare
ReportReport
Posted on by 36

Hi all,

 

I tried to send an email in a standardized way (they have all the same delimiter). My flow works fine. But when it's not a standardized delimiter ':', it fails. I have to skip some lines, because there is no delimiter, but the code is not working. I will make 2 flows one with ':' and another with '\n'.

 

I only need the variables with ':', all the rest is not important in this flow. This is what I tried:

 

  1. When a new email arrives V3
  2. Html to text (contains the body of the email)
  3. Compose email to body text (contains the body of html to text)
  4. Compose with the function:split(outputs('Compose_Email_Body_Text'), '')
  5. I initialized all my variables (name start with Var and they are all a string with no value)
  6. Compose ExtractData:last(split(outputs('Compose_Email_Body_Text'), '\n\n'))
  7. Then I extract all my variables withtrim(substring(split(outputs('ExtractData'), ': ')[1],0,indexOf(split(outputs('ExtractData'), ': ')[1], 'Numéro'))). I changed the [] for each code also the word that should be find for each Var. Here is the part where it sucks cause I have to skip some lines to get only those with the delimiter.

 

Setting up the variables and adding the output in the right column will work only if I am able to split it correctly.

 

Do you have any suggestions?

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @Mimi123 ,

     

    Could you please make examples of the two situations, give us email bodies to test with?

     

    Best regards,

  • Mimi123 Profile Picture
    36 on at

    Hi @v-jefferni 

     

    Sure here is the email that I send in a standardized way (it includes fake data and the flow works)

     

    Rue : George Lambermont

    Numéro : 111

    Boîte : 12a

    Code postal : 1478

    Localité : Bourg-en-Bresse

    Adresse d’expédition : Non

    Téléphone :

    Mobile : 4521397063

    Email : test@gmail.com

    Rappeler le client : oui

    Code(s) EAN : 290524745299047160

    Description : Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression. Le Lorem Ipsum est le faux texte standard de l'imprimerie depuis les années

     

     

    This is the 2nd flow and include also fake data. As you can see they don't have all the delimiter ':'. The idea is to make 2 flows with the two delimiters and store each item in a variable.

     

    Title

    Standard info (not needed in power automate).

    ID Agent : AZERT14

    Client

    Adresse concernée

    Contact

    Référence

    Description

    Jean Dupuis

    Georges Lambermont 111   1478 Bourg-en-Bresse

     

    Adresse d'expédition différente : Non

    Téléphone :

    Mobile : 4521397063

    E-mail : test@gmail.com

    Rappeler le client : Oui

     

    Code(s) EAN : 290524745299047160

    Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression. Le Lorem Ipsum est le faux texte standard de l'imprimerie depuis les années

     

    Footer text 

     

    If you have any questions or remarks don't hesitate to ask 🙂

     

  • Mimi123 Profile Picture
    36 on at

    Hi @v-jefferni 

    Sure here is the email that I send in a standardized way (it includes fake data and the flow works)

    Mimi123_0-1716972735951.png

    This is the 2nd flow and include also fake data. As you can see they don't have all the delimiter ':'. The idea is to make 2 flows with the two delimiters and store each item in a variable.

    Mimi123_1-1716972785608.png

    If you have any questions or remarks don't hesitate to ask 🙂

     

  • v-jefferni Profile Picture
    on at

    Hi @Mimi123 ,

     

    Please post the data of 2nd email body in TEXT, including the table, so that I can make a flow and check the result. Also, please highlight all the data you need in result.

     

    Best regards,

  • Mimi123 Profile Picture
    36 on at

    @v-jefferni , 

    Thanks for your reply.

    Sure, you will find the table below. I put the info I need in red. 

     

    Title

    Standard info (not needed in power automate).

    ID Agent : AZERT14

    Client

    Adresse concernée

    Contact

    Référence

    Description

    Jean Dupuis

    Georges Lambermont 111   1478 Bourg-en-Bresse

     

    Adresse d'expédition différente : Non

    Téléphone :

    Mobile : 4521397063

    E-mail : test@gmail.com

    Rappeler le client : Oui

     

    Code(s) EAN : 290524745299047160

    Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression. Le Lorem Ipsum est le faux texte standard de l'imprimerie depuis les années

     

    Footer text

  • Mimi123 Profile Picture
    36 on at

    @v-jefferni 

     

    This is the output of the html to text:

     

    Title 123

     

    Information text

    Is written

    Like this

     

    ID Agent : AZERT14

     

    Client

     

    Adresse concernée

     

    Contact

     

    Référence

     

    Description

     

    Jean   Dupuis

     

    Georges lambermont   111  

    1478   Bourg-en-Bresse

     

    Adresse d'expédition différente :  Non

     

    Téléphone : 

    Mobile : 4521397063

    E-mail : test@gmail.com

    Rappeler le client : Oui

     

     

    Code(s) EAN : 290524745299047160

     

    Le Lorem Ipsum est simplement du faux texte employé dans la composition et la mise en page avant impression. Le Lorem Ipsum est le faux texte standard de l'imprimerie depuis les années

     

     

     

     

     

     

    Footer text

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard