Good Day Community
trust you are well..
I am busy creating a IT Onboarding process where HR will complete a MS Form and then the flow needs to Search for a user and create the O365 user if they do not exist. and if the user does exist then to create the user but just modify the UPN
From what I have seen the way to go is
Search for users (V2) and then a condition
with the expression = length(outputs('Search_for_users_V2)')?['body/value']) is greater than or equal to 0
the flow works well well if the user does not exist, but when the user does exist then the flow just fails stating that the object does exist.
Anyone have a solution or can guide me as to where I am going wrong?
Thank you