I have a basic expression in my flow:
if(not(empty(body('Get_response_details')?['ra7fcccd72d284ee8ae5284e99284ad67'])),json(body('Get_response_details')?['ra7fcccd72d284ee8ae5284e99284ad67'])['displayText'],'N/A')
body('Get_response_details')?['ra7fcccd72d284ee8ae5284e99284ad67'] is empty! Nothing in it. When I run
empty(body('Get_response_details')?['ra7fcccd72d284ee8ae5284e99284ad67'])
it returns true
if I check the not of that, it returns false
not(empty(body('Get_response_details')?['ra7fcccd72d284ee8ae5284e99284ad67']))
ok, so that's good right? but my if always runs true and errors
InvalidTemplate. Unable to process template language expressions in action 'Send_an_email' inputs at line '1' and column '2397': 'The template language expression 'if(not(empty(body('Get_response_details')?['ra7fcccd72d284ee8ae5284e99284ad67'])),json(body('Get_response_details')?['ra7fcccd72d284ee8ae5284e99284ad67'])['displayText'],'N/A')' cannot be evaluated because property 'displayText' cannot be selected. Please see https://aka.ms/logicexpressions for usage details.'.