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 / So Close Input Needs F...
Power Automate
Answered

So Close Input Needs Formatting

(0) ShareShare
ReportReport
Posted on by 70
  • I have a csv with about 6,000 records and 12 columns
  • I need the data from just two columns (phone1 and phone2)
  • I need to group the two columns into one and eliminate duplicates and blanks
  • I need to send the unified data in chunks of 50 to another system via HTTPS POST API

My flow below looks like it works but the format of the data ( items() )in the HTTPS body part is wrong.

 

It looks like:

{
  "message": "test ",
  "mobiles": [
    "\"1111111111\"",
    "\"2222222222\"",
    "\"3333333333\"",
    "\"4444444444\"",
    "\"5555555555\""
  ],
  "batchId": 0
}

 

It needs to look like:

{
  "message": "test ",
  "mobiles": [
    1111111111,
    2222222222,
    3333333333,
    4444444444,
    5555555555
  ],
  "batchId": 0
}

 

My Flow:

JPey_0-1701714515361.png

JPey_1-1701714646473.png

JPey_3-1701714791116.png

JPey_7-1701715069216.png

JPey_6-1701714969583.png

JPey_8-1701715198006.png

 

Any ideas on how to fix this? Thanks in advance for your expertise. 

Categories:
I have the same question (0)
  • Verified answer
    JPey Profile Picture
    70 on at

    I was able to put a compose to remove the double quotes and slashes:

    replace(replace(string(item()),'"'''),'\','')
     

    Then I just JSON'd the output to get rid of the outside double quotes and it worked!

    json(outputs('Compose'))

     

    Thank you for everyone's help over this weekend. I have a lot to learn but the community was so helpful. 

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 273 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 135 Most Valuable Professional

Last 30 days Overall leaderboard