Any help would be appreciated on this! A quick overview of the Flow that I built:
- When a New Email Arrives (V3)
- Condition
- Export Email (V2)
- Create File (SP Library)
- Update File Properties
- The SP library has a text field that I want to update with the employer name
Everything is working great except the last bit of metadata.
The emails coming in always a subject that reads: "Report From Employer:" followed by a space. And finally containing the employer name. The employer name varies greatly in character size. I need a proper function to successfully extract this bit (employer name) but my code is failing.
(The employer name is also in the body of the text between a set of apostrophes if that is easier to work with.)
My current subject code:
substring(triggerBody()?['Subject'],add(lastIndexOf(triggerBody()?['Subject'],'Employer'),10),30)
Thanks!