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

Change Attachment name

Hi, I have a flow that colect email attachments and save in a folder of onedrive.

 

the condictions is to save attachment with:

 

-To×​-From×​-Subject×​-Name×
 
The exit is:   user@example.com-orign@example.net-subjetctname-nameoffile.jgp
 
my problem is on the SUBJECT adn NAMEOFFILE, that is created with a long name.
 
My need is to trunk the full name of attach to max 100 characters...
 
4 REPLIES 4
v-yuazh-msft
Community Support
Community Support

Hi @felipecs86,

 

I have made a test on my side to rename a file with 100 characters and it works well with no issue.

 

Could you please explain more details about your issue so we would try to provide a proper workaround for you.

 

Best regards,

Alice

felipecs86
New Member

Can you show me how to rename? I don’t know how to rename, it is my issue. Thanks

Hi @felipecs86,

 

Please refer to screenshot below to create the flow:

Capture1.PNGCapture2.PNG

 

 

The expression in the Compose 2 as below:

concat(triggerBody()?['To'],'-',triggerBody()?['From'],'-',triggerBody()?['Subject'],'-',outputs('Compose'))

The flow would run successfully as below:

Capture.PNG

 

 

Best regards,

Alice

felipecs86
New Member

I’ve trying but my output it’s writing with a expressions name

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,149)