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 Platform Community / Forums / Power Automate / Extract Reference numb...
Power Automate
Unanswered

Extract Reference number from Email Body

(0) ShareShare
ReportReport
Posted on by 10

Hello, 

 

I am looking to remove a reference number that can appear anytime in the body of email as there is no template used by the sender. 

 

For example: 

 

Hello - Please find the reference number CF(9 digit number) if you need anything please let me know. 

 

So essentially I need a way to extract that reference number and the CF never changes as well 

Categories:
I have the same question (0)
  • vikulkar Profile Picture
    on at

    Hi @amenegatti ,

     

    One way to achieve this is by using the substring function as shown below: 

    substring(triggerOutputs()?['body/body'],indexOf(triggerOutputs()?['body/body'],'CF'),11)
    This would extract all the text starting from CF and the 9 digits number.
     
    If the referenceID includes '(' then you may want use the number 13 instead of 11 in the above expression
     
     
     
     
    Thanks and Regards,
    Vikas K
     

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