Please try this update.
if(
and(
empty(triggerOutputs()?['body/ConfidentialInformation_Extract']),
empty(triggerBody()?['ExceptionConfidentialInformation0'])
),
'The definition of confidential information is missing',
if(
and(
not(empty(triggerOutputs()?['body/ConfidentialInformation_Extract'])),
empty(triggerBody()?['ExceptionConfidentialInformation0'])
),
concat(
'There is a definition of confidential information on page ',
triggerOutputs()?['body/ConfidentialInformation_PageNumb'],
' and its exceptions are missing.'
),
if(
and(
empty(triggerOutputs()?['body/ConfidentialInformation_Extract']),
not(empty(triggerBody()?['ExceptionConfidentialInformation0']))
),
concat(
'There is a definition of exception to the confidential information on page ',
triggerBody()?['ExceptionConfidentialInformation1'],
' and the confidential information is missing.'
),
concat(
'There is a definition of confidential information on page ',
triggerOutputs()?['body/ConfidentialInformation_PageNumb'],
' and an exception to the confidential information on page ',
triggerBody()?['ExceptionConfidentialInformation1']
)
)
)
)
Replaced && with and() (Power Automate does not support &&, it uses and() for multiple conditions).
Replaced !empty() with not(empty()) (Power Automate requires not() for negation).
Ensured ExceptionConfidentialInformation1 is referenced consistently.
------------------------------------------------
⭐ If this was helpful, please like and mark as a verified answer to help others find this too!
Always glad to help! 💯💯💯💯💯
Tom
Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn