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 Platform Community / Forums / Power Automate / flujos de outlook a on...
Power Automate
Unanswered

flujos de outlook a one driver

(1) ShareShare
ReportReport
Posted on by 5
buenas tardes soy nuevo por aquí he estado intentado crear u8n flujo que es llevas mis pdf que llegan a Outlook a mi carpeta de empresa de onedriver
el flujo funciona pero no se donde tengo el error que los archivos que llegan no puedo leerlo y llegan de esta forma.
AAMkADI3MmY4ZDdhLTVmNGYtNDk4MC05OTUxLWI1ZmZkNjhlOWU5NQBGAAAAAADPWg2YkXK5Sq_eXNTboe7rBwC0J9RBqE0xSZh6NXvLKbskAAAAAAEMAAC0J9RBqE0xSZh6NXvLKbskAAXrVkiGAAA=
alguien puede ayudarme y indicarme donde puedo tener el error, muchas gracias
Categories:
I have the same question (0)
  • Haque Profile Picture
    1,446 on at
     
    ¿Podrías publicar una captura de pantalla con el error?
     
    La cadena que ves llegar a tu carpeta de OneDrive se ve así:
    AAMkADI3MmY4ZDdhLTVmNGYtNDk4MC05OTUxLWI1ZmZkNjhlOWU5NQBGAAAAAADPWg2YkXK5Sq_eXNTboe7rBwC0J9RBqE0xSZh6NXvLKbskAAAAAAEMAAC0J9RBqE0xSZh6NXvLKbskAAXrVkiGAAA=
    
    En realidad, se trata del contenido codificado en base64 del archivo PDF, no del archivo en sí.
     
    Por qué sucede esto:
     
    • Cuando recibes el contenido de un archivo adjunto de correo electrónico desde Outlook, se devuelve como datos codificados en base64.
    • Si guardas esta cadena base64 directamente como un archivo en OneDrive sin decodificarla a binario, el archivo contendrá esa cadena codificada en lugar del contenido PDF real.
    Cómo solucionar esto en tu flujo de Power Automate:
     
    Obtén el contenido del archivo (base64) del archivo adjunto del correo electrónico(Get the file content (base64) from the email attachment) — Ya lo estás haciendo.
     
    Utilice la acción "Crear archivo" (Create file action) en OneDrive o SharePoint.
     
    Para el campo Contenido del archivo, NO pase la cadena base64 como texto(For the File Content field, do NOT pass the base64 string as text). En su lugar, pase el contenido del archivo directamente desde la acción "Obtener contenido adjunto" (que ya está en formato binario). Instead, pass the file content directly from the "Get attachment content" action (which is already in binary format).
     
    Si tienes la cadena base64, usa la expresión base64ToBinary() para convertirla de nuevo a binario antes de pasarla al contenido del archivo(If you have the base64 string, use the expression base64ToBinary() to convert it back to binary before passing it to the file content).
     
    Ejemplo: Si la salida de la acción "Obtener contenido adjunto" es base64, entonces en el campo "Contenido del archivo" de la acción "Crear archivo", utilice:
    base64ToBinary(outputs('Get_attachment_content')?['body']['$content'])
    
    o simplemente utilice el contenido dinámico de "Obtener contenido adjunto" si proporciona el contenido binario directamente.
     
    Avísame si esto te ayuda.
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard