Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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?

  • Verified answer
    Paulie78 Profile Picture
    8,416 Super User 2025 Season 1 on at
    Re: Removing Properties from Json - how and where

    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 😘

     

  • Johnnyoc Profile Picture
    41 on at
    Re: Removing Properties from Json - how and where

    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?

  • Pstork1 Profile Picture
    66,836 Most Valuable Professional on at
    Re: Removing Properties from Json - how and where

    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.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492