web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Renombrar archivo

(0) ShareShare
ReportReport
Posted on by 17

Buenos días.

 

Espero me puedan ayudar.

 

Quiero renombrar archivos y guardarlos en one drive.

 

Actualmente este proceso ya lo solución con la variable Split  

split(items('Cambia_nombre_calca_2')['nombre'], '.')

 el cual me separa el nombre de la extensión, es decir

documento. jpg me traerá jpg el cual después agregare

Servicios2015_1-1646682865036.png

 

El  problema radica que algunos usuarios  subirán archivos con nombres que tienen mas de .

 

Por ejemplo documento.2de.jimenes.dos.jpg

Me dejara la extensión 2de

 

Como podría hace para que me traiga lo que esta en el último punto o que lea la cadena de derecha a izquierda y me traiga lo que esta primero.

 

Espero me puedan ayudar.

 

Agradeciendo su ayuda

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @Servicios2015 

    You can use the length() expression to see how many elements are in the array output by your split() expression.

    If there are only 2 elements, then proceed as you do now.

    If there are more than 2 elements, then you can use concat() to put all the elements back together and put a period in the middle except for the last element.  Remember that the first element has an index of 0 and the last element will have an index of the output of the length() expression minus 1.

    Let me know if you need more help.

     

     

  • Verified answer
    Servicios2015 Profile Picture
    17 on at

    Buenos dias.

     

    Me sirvió de mucho ya que me hizo comprender otra solución.

     

    Use la función last(item())

     

     

    Servicios2015_0-1646691934333.png

     

     

    Gracias

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 427

#2
Vish WR Profile Picture

Vish WR 316

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard