web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

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

 

 

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

    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
    Re: JSON Validation

    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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 532 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 461 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 256

Last 30 days Overall leaderboard