Hello all,
I have a flow that is taking an email and converting it to plain text. I am then parsing the plain text to get specific values and use them as dynamic content. I have not found a good way to parse the needed text in one power automate expression.
ex.
Personnel Change Authorization (New Hire)
Please see the PCA details below for Jane Doe
Start Date: 7/29/2024
Job Code: 1234
Job Title: Director
Standard Hours: 40
New Hire Type: Rehire
Recruiter: Jimmy Johns
Supervisor: Papa Murhpy
Dept. Head Approval: Approved
Finance Dept. Approval: Approved
Name: Jane Doe
Preferred First Name:
Home Email: test@testing.com
Everything after the ":" is dynamic content, some of which I would like to parse. I am currently using 2 compose actions to get 1 value, seen below:
Thank you for the reply. I have multiple scopes which are each doing it's own thing but for example the step in the screenshot below is returning the value after Start Date: Below is an example of the email received.
So for example, when trying to get the start date, I am using trim(split(outputs('Email_Plain_Text'), 'Start Date: ')[1]) and trim(split(outputs('splitAtStartDate'), 'Job Code:')[0])
I am also adding line breaks that should help with the breaking of the lines coming from the HTML to Text output, but it still seems to be breaking the lines and making everything a run on sentence in theory.
Wanted to see if there was an expression I could use that would combine these.
Hi @DH2023
Please always share your code, what it looks like, what's wrong with it etc. Help us have an overall picture beyond the words. Need to see your Whole flow we I can recommend what to do.
1. Does the text have carriage turns in it?
2. I understand you want to put the base text into Salesforce, but can you explain why you care about the space?
I guess you can always put them back in, which sucks if you have too but you can.
3. Are you converting stuff into a Table so it doesn't look like garbage?
4. What exactly are you putting in the email.
Etc.
Please share more details and what you would like.
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492