Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Removing Properties from Json - how and where

Like (0) ShareShare
ReportReport
Posted on 25 Jun 2024 13:46:32 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 Moderator on 15 Jul 2024 at 13:02:08
    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 15 Jul 2024 at 12:25:24
    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
    67,129 Most Valuable Professional on 25 Jun 2024 at 14:10:34
    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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2