I have an entity having 10 or more attributes in it. And I want a user to select some of these attributes from the UI using checkboxes. I have stored these checkboxes information also. Now I want to retrieve the list of records of only selected attributes. Is it possible using XPath constraints? Can I use variables inside XPath constraint because I want to modify XPath queries based on user input? What can be the appropriate solution for this problem?
Nope. You can change the value of the variable(s) in the xpath, but not the xpath itself.
You can use a different xpath by triggering another microflow.
Tim v Steenbergen
But what you can do is based on the checkboxes let a microflow return the wanted list of objects. So make a decision tree that for each checkbox retrieves that list for that checkbox and add that to the list you return in the microflow.