I'm using the Get user profile connector to show when an email address is valid. When it is NOT valid, the input JSON looks like this:
{
"host": {
"connectionReferenceName": "shared_office365users",
"operationId": "UserProfile_V2"
},
"parameters": {
"id": "xxxxx@badaddress.edu",
"$select": "userPrincipalName"
}
}
I put this expression into the connector:
inputs('getProfile')?['parameters']?['id']
But it gives this error:
InvalidTemplate. Unable to process template language expressions in action 'Append_to_array_variable_2' inputs at line '1' and column '32249': 'The template function 'inputs' is not defined or not valid.'.
Here's a screencap of the editor:

Please help. I need to append the bad emails into the array badAddresses.
Thanks,
Anne