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?
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)]
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,
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
44 | |
41 | |
38 | |
36 | |
23 |
User | Count |
---|---|
40 | |
39 | |
31 | |
29 | |
28 |