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 Automate
Answered

JSON Validation

(0) ShareShare
ReportReport
Posted on by 79

Dear Community,

 

I have a flow that takes a CSV and parses the contents. What I need to be able to do is validate that values in the CSV meet a certain set of requirements.

 

I have used Compose to validate that the first value in the column is -eq to 6 or is empty (null) and if not then send an email. This works well.

 

JSON-Validation.png

I need to be able to add additional validation for example I need to be able to validate that there is a header row in the CSV and I need to be able to ensure that there are 6 columns.

 

I thought I would be able to use multiple compose and then add the validation in the condition using OR but when I add a compose the only Dynamic Content available to me is the current item or the Get SAPAgent Value Length from the previous compose (see below).

 

JSON-Validation-3.png

 

JSON-Validation-2.png

Can anyone offer any help in achieving this. 

Thanks in advance

DDM

 

 

Categories:
I have the same question (0)
  • Verified answer
    wskinnermctc Profile Picture
    6,519 Moderator on at

    You'll have to manually type in the column name with the expression.

     

    Outputs('Get_SAPAgent_Value_Length')?['ColumnName']

    or

    items('Parse_JSON')?['ColumnName']

  • DDM Profile Picture
    79 on at

    Thanks @wskinnermctc  Wasn't the exact solution but put me on the right track.

     

    outputs('FieldNames')[0]

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard