Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

email subject format condition

(2) ShareShare
ReportReport
Posted on by 2,245

when new email arrives with below subject format

Examples:

i)subject-Correct is what i mean is that it should have the below dynamic values country\customer\contractnumber\Type\Region\department in the email subject seperated by \

Email Template //Sample

Subject: Country: Kenya\Customer: client1\Contract Number: 43291\Type: Renewed\Region: Washington\Department: Sharepoint

ii)subject-incorrect format is what i mean is that which is not having these country,customer,contractnumber,Type,Region,department with proper format seperated by \ or it may contains different subject other than this above format so something different subject texts

 

i need to check a condition if the subject is in correct or incorrect format so how to put a condition for the above scenario for correct or incorrect.

if correct then i have to send email and if not correct then i export email and create file in document library

 

  • Veblitz Profile Picture
    2,245 on at
    Re: email subject format condition

    Can you pls share the expression of your above flow steps.thanks

  • Veblitz Profile Picture
    2,245 on at
    Re: email subject format condition

    1. Does the Subject Have { } in it?

     

    Below is my actual email subject

    Veblitz_0-1720931200011.png

     

    2. This looks to be JSON that got turned into a String to be the subject?

    Im using Json in the compose and its turned into string

    3. Meaning that the \ actually now exists in the string, where it didn't in the JSON, is that correct?

    No, Im asking how to check condition for my subject in the below format, so i just told json for overall idea etc. that's it and i need to understand how to check condition for the below subject under the scenarios

    Veblitz_1-1720931365071.png

     

    Scenario for checking condition examples

    i)subject-Correct is what i mean is that it should have the below dynamic values country\customer\contractnumber\Type\Region\department in the email subject separated by \

    Email Template //Sample

    Subject: Country: Kenya\Customer: client1\Contract Number: 43291\Type: Renewed\Region: Washington\Department: Sharepoint

    ii)subject-incorrect format is what i mean is that which is not having these country,customer,contractnumber,Type,Region,department with proper format separated by \ or it may contains different subject other than this above format so something different subject texts

     

  • Michael E. Gernaey Profile Picture
    43,285 Super User 2025 Season 1 on at
    Re: email subject format condition

    Hi @Veblitz 

     

    You have more than 1 of these email asks, and I love that you are separating all your questions, truly I do, its super nice.

     

    Only if you put multiple email ones out in different places, its just causing confusing as to what you really need.

     

    Questions:

    1. Does the Subject Have { } in it?

    2. This looks to be JSON that got turned into a String to be the subject?

    3. Meaning that the \ actually now exists in the string, where it didn't in the JSON, is that correct?

     

    On your other thread, you wanted to know how to parse (a part of the email), when a piece is missing and its just spaces.

     

    How do these 2 relate? Also please make sure to mark when answered, I don't keep answering if people don't do that, its not fair to use us for help and not at least recognize it.


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492