cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rushirohit
Frequent Visitor

save specific content of email body to excel file

Hi, I am trying to save specific information email body to excel file. When I convert body using Html to text format sample response is below. Need help to fetch "RITMXXXXXXX" from below.

 

Please click on the Ticket # below to review the requested item.Ticket #:
RITMXXXXXXX
[https://XXXX.service-now.com/nav_to.do?uri=sc_req_item.do%3Fsys_id=87e6867adb37dc90a710c3d239961951%...]
Short Description:

1 ACCEPTED SOLUTION

Accepted Solutions
edgonzales
Super User
Super User

@rushirohit 

Hey there. This will only work if the emails are all formatted the same way...swap out the bold part for your email body:

 

split(split(outputs('SampleData'),'#:')[1],'[http')[0]

 

Here's a video on the split function:

 

Keep us posted.

-Ed

 

If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

View solution in original post

1 REPLY 1
edgonzales
Super User
Super User

@rushirohit 

Hey there. This will only work if the emails are all formatted the same way...swap out the bold part for your email body:

 

split(split(outputs('SampleData'),'#:')[1],'[http')[0]

 

Here's a video on the split function:

 

Keep us posted.

-Ed

 

If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,161)