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

Placing folder instead of a file name name in the body of a face sheet for faxing

20190320_114719.jpg

I have modified the following template to send a email fax to a specific recipient when a file is dropped into a OneDrive folder.  I would like the name of the folder to be inserted at a specific point on the cover page of that fax. Example Dear Mr. "name of folder here" thank you for sending this client to us.......

I am having trouble finding the right method to get only the name of the folder and not the name of the individual file to be placed in that particular spot on the cover page.

I also am having trouble with the formatting of the text in the subject section of the document as well. It tends to smash all of the words together as opposed to following the wysiwyg formatting.

 

An alternative approach would be to insert a customized fax page with my watermark on it that would have the same message and insert all the necessary information on that cover page with the ability to add a date of service or date of creation from each document. Example of what is not working now.  Any thoughts?

example.jpg

 

1 REPLY 1
Community Support
Community Support

Hi @drlea12 ,

 

It is recommended to use When a file is created (properties only) as the trigger.

Then you could use the following expression to get the name of the folder.

split(triggerBody()?['Path'],'/')[sub(length(split(triggerBody()?['Path'],'/')),2)]

3.PNG

As for the adjustments you mentioned in the Subject field, I am afraid it is currently difficult to implement, and it seems that only some basic text can be filled.

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (9,774)