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 / Covert Object into Arr...
Power Automate
Answered

Covert Object into Array??

(0) ShareShare
ReportReport
Posted on by 262

Hi All,

 

I have a flow which takes information from the Description of a Task and puts it into a Teams Chat.

The task description looks like this:

Skybluekid_0-1690292585809.png

I have managed to remove the Not Relevant part, but when I place the rest in the teams message it comes out like this:

["Part Number : Description","Part Number : Description"]

 

What I would like is to have it:

Part Number : Description

Part Number : Description

 

Any help would be appreciated

Categories:
I have the same question (0)
  • Skybluekid Profile Picture
    262 on at

    This what I have in my flow

    Skybluekid_0-1690297472309.png

     

  • Skybluekid Profile Picture
    262 on at

    Alternatively, how would I get rid of the Not Relevent section from the original Description

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Skybluekid ,

     

    Please try to convert the variable from array to string.

    Sample:

    vxiaochenmsft_0-1690334900327.png

    replace(replace(replace(string(variables('var')),'[',''),']',''),',',decodeUriComponent('%0A'))
    vxiaochenmsft_1-1690334923708.png

     

    Best Regards,

    Wearsky

  • Skybluekid Profile Picture
    262 on at

    Hi

    I have tried the solution.  when I post it to Teams it comes out as 

     "Part Number : Description" "Part Number : Description"

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Skybluekid ,

     

    Sorry, my mistake.

    Please try this

    replace(replace(replace(replace(string(variables('var')),'[',''),']',''),',','<br>'),'"','')
    vxiaochenmsft_0-1690358761477.png

     

    vxiaochenmsft_1-1690358773863.png

     

     

    Best Regards,

    Wearsky

  • Skybluekid Profile Picture
    262 on at

    Thank you very much

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 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard