cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
emilia
New Member

Outlook Dynamic Content Contact Fields

Hi Everyone

 

I'm new to power automate and I've basically been trying to automate an email filing system. My current flow is:

When a new email arrives (inbox) ->

Export email (message id) ->

Create file:

  • Folder path: ***
  • File name: concat(triggerOutputs()?['body/subject'],'.eml')
  • File content: body

This works perfectly fine, but I'm wondering if I can get a specific folder path.

 

Essentially I want to create a folder using dynamic content based on the contact's organisation field. The closest thing I get is to/from/cc, but this gives me virtually no organisational options and if anything actually makes it harder to locate files since it only categorises based on sender/recipient (as opposed to the organisations as a whole which those people work for).

 

I am doing this because my organisation receives a large number of emails that need to be easily accessed at any moment. We currently have a very comprehensive file system on our hard drive that works great to retrieve emails but takes a long time to individually file each email. Is this something I can even achieve using power automate?

 

I know this is a really complicated question and I'm not quite sure how to word the issue I'm having as I have little tech experience, but I'm taking it here since it's the only option for non-premium members.

 

tl;dr -- Is there a dynamic content field for an Outlook contact's work organisation?

1 ACCEPTED SOLUTION

Accepted Solutions
fchopo
Super User
Super User

Hi @emilia 

No, there no dynamic content field for an Outlook contact's work organization. Instead of that, I would work with the organization domain name: e.g test@mycompany.com would get mycompany as organization Id.

Therefore, you could use the "From" field and use the following expression to get the domain:

split(split(triggerOutputs()?['body/from'],'@')[1],'.')[0]

Then you can create a folder name for each domain and store there the emails.

Hope it helps!

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

2 REPLIES 2
fchopo
Super User
Super User

Hi @emilia 

No, there no dynamic content field for an Outlook contact's work organization. Instead of that, I would work with the organization domain name: e.g test@mycompany.com would get mycompany as organization Id.

Therefore, you could use the "From" field and use the following expression to get the domain:

split(split(triggerOutputs()?['body/from'],'@')[1],'.')[0]

Then you can create a folder name for each domain and store there the emails.

Hope it helps!

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

Thanks so much! This is super helpful.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

AI Builder AMA June 7th carousel (up on May 25th, take down June 8th) (1).png

'Ask Microsoft Anything' about AI Builder!

The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.

Users online (1,583)