An Azure service that provides a hybrid, multi-cloud management platform for APIs.
Hi @juni dev As mentioned in the previous thread the logic seems to be incorrect
<set-variable name="IsAccountDisabling" value="@(context.Request.Body.As<JObject>(true)["accountEnabled"].Value<bool>() == false)" /> This will set false if founds true as the value of accountEnabled.
You're comparing the value of accountEnabled (true) with false, that will return false and will set value false in the variable IsAccountDisabling That's why the condition never met:
<when condition="@(((bool)context.Variables["IsAccounPresent"]) && ((bool)context.Variables["IsAccountDisabling"]))"> where ((bool)context.Variables["IsAccountDisabling"]) will always return false.
please find the working policy which satisfies all the condition as per your requirement,
Hope this helps! Try and do let me know if you have any queries.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.