Notifications
Announcements
Hi,
I have got an email text that contains a disclaimer that starts with "This email"...
I want to remove this party of the email. I have tried it using First(Split( ... but I get an error.
Hello @Phil_NPO ,
you can use the replace(...) expression to replace it with '' (nothing)
replace(SourceString, StringToReplace, ReplacementSting) example: replace([EmailTextDynamicContent],'This email','')
Hi Tom,
thanks for your reply. The problem is, that the text is not allways the same. The disclaimer contains a link with a result of a virus scan and this is allway different. So I only can search for the beginning of the disclaimer
My solution is
first(split(triggerOutputs()?['body/body'],'--'))
This -- is just in front of the string, which should be deleted.
I tried this before I have asked here, but I had a error at the syntax.
What error did you get? If it's an email I'd convert it from 'HTML to Text' first (there's an action Html to text) and remove that string after it's converted to text. The final expression could look like this:
replace([EmailTextDynamicContent],first(split([EmailTextDynamicContent],'--')),'')
No, my problem often is the syntax (german and english using " instead of ') or something like this.
It works fine with
Thanks for your help!
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 538 Super User 2025 Season 2
Tomac 405 Moderator
abm abm 252 Most Valuable Professional