Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

Microsoft Flow Cognitive Services Detect Language

(0) ShareShare
ReportReport
Posted on by

The Cognitive Services Detect Language action in Microsoft Flow returns a list of "detectedlanguages" - how can I only get the languagecode with the highest confidence score? Microsoft Flow automatically applies a foreach when using the "detectedlanguages" list but how do I filter it now?

 

Kind regards,

 

Joris

  • patrickabel Profile Picture
    patrickabel 53 on at
    Re: Microsoft Flow Cognitive Services Detect Language

    I'm curious about this as well. It looks like MS Cognitive Services returns an object array of "detected languages" which has values for name, code, and confidence score.

     

    If you try to use just one of these properties (i.e. Language Code) in subsequent steps, Flow/Logic Apps will auto-generate a for-each loop to ensure you first iterate the "detected languages" array.

     

    This is fine, but I don't any current functions in logic apps that would allow me to build a string or an array such that I could do something with this data before storing.

  • v-yamao-msft Profile Picture
    v-yamao-msft on at
    Re: Microsoft Flow Cognitive Services Detect Language

    Hi Joris,

     

    I have created a flow to create an item in SharePoint list if the Language Code of an email is equal to “zh-CHS”. This flow works well for me. My flow screenshot for a reference:

    language.PNG

     

    But I didn’t get the “apply to each”, how is your flow configured? Could you provide a screenshot for better understanding?

     

    Best regards,
    Mabel Mao

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard

Featured topics