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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Problem with StartWith...
Power Automate
Unanswered

Problem with StartWith connector

(0) ShareShare
ReportReport
Posted on by 24

Good morning.

 

I'm trying to do this:

I create a file in a library, and then, depends of the starts for the name of this file, it must be moved to other folder.

I create the expression:

     startsWith(triggerOutputs()?['headers/x-ms-file-id'], 'Destino1')

but it doesn't work because always appears this message:

 

No se pueden procesar las expresiones de lenguaje de plantilla para la acción "Si_Archivo_comienza_por_"Destino1"" en la línea "0" y la columna "0": "La función de lenguaje de plantilla "startsWith" espera que su primer parámetro sea de cadena de tipo. El valor proporcionado es de tipo "Null".

 

How can i solve this problem?

 

Thank you so much.

Categories:
I have the same question (0)
  • Rhiassuring Profile Picture
    8,690 Moderator on at

    Hi there, 

    Try this instead please: 

    startsWith(triggerOutputs()?['body/{FilenameWithExtension}'],'Destino1')
     
    You want to look at the filename, not the ms-x-file-id which is a crazy weird string.

    Cheers,

    Rhia
  • eyden Profile Picture
    24 on at

    Good morning.

     

    I've changed the condition but still not working:

     

    No se pueden procesar las expresiones de lenguaje de plantilla para la acción "Si_Archivo_comienza_por_"Destino1"" en la línea "0" y la columna "0": "La función de lenguaje de plantilla "startsWith" espera que su primer parámetro sea de cadena de tipo. El valor proporcionado es de tipo "Boolean".

     

    eyden_0-1649224214269.png

     

  • Rhiassuring Profile Picture
    8,690 Moderator on at

    Oh, you're looking for a condition? There are questions to ask here - do you want this flow to run at all if the filename does NOT start with Destino1? If that is the case, you will want to use the trigger condition instead, which is in the settings of the first action. 

    If you want to use a condition, then your formula will instead be:

    equals(startsWith(triggerOutputs()?['body/{FilenameWithExtension}'],'Destino'),true)
    And your operator will be "Equal to" and your value will be "true". 

    Rhiassuring_0-1649227959335.png

     



    Right now what you have is returning "true" (the formula), and then you're asking if it's equal to 'Destino1' - which it isn't. 


     

  • eyden Profile Picture
    24 on at

    Hello.

    The flow keeps giving me an error. I don't know if i'm doing right:

     

    eyden_0-1649231351868.png

    What I need is that when the file name starts with "Destino1" it is moved to a different folder.

     

     

  • Verified answer
    eyden Profile Picture
    24 on at

    The output from the compose is alwais "false".

  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @eyden ,

     

    Use below expression in the condition control:

    startsWith(triggerOutputs()?['body/{FilenameWithExtension}'],'Destino1')

    and set the comparison value to true.

    vjefferni_0-1649403443079.png

     

    startsWith function will return true or false. 

     

    Hope this helps.

     

    Best regards,

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard