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 / Removing Properties fr...
Power Automate
Answered

Removing Properties from Json - how and where

(0) ShareShare
ReportReport
Posted on by 41

Hi I have a CSV that I'm delimiting/parsing into a json array. 

 

However during this exercise I want to remove properties that exist in another csv list. I'm not sure of the best place to this or method?

 

Please can anyone give any advice?

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,361 Most Valuable Professional on at

    If you do a Parse JSON on the CSV You can use a Data Select to select the specific properties you want in an output array.

  • Johnnyoc Profile Picture
    41 on at

    Thanks for this, the problem I have is that there may be new csv headers which I'd need to cater for. Essentially there are a number of headers that won't change that I want to remove but then process the remaining. Not sure if you have any other thoughts?

  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at

    You can use the removeProperty expression to remove elements that you do not want. Example:

     

    2024-07-15_13-59-35.png

    The code used:

    removeProperty(item(), 'author')

    You need to put the select action into text mode by pressing the little button on the right of the map input.

     

    You can wrap the removeProperty in multiple removeProperty expressions to get rid of as many properties as you want.

     

    Blog: tachytelic.net

    YouTube: https://www.youtube.com/c/PaulieM/videos

    If I answered your question, please accept it as a solution 😘

     

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 541

#2
Valantis Profile Picture

Valantis 479

#3
Vish WR Profile Picture

Vish WR 470

Last 30 days Overall leaderboard