Hello,
I have a table called job position that has Parent Job position (Lookup to the same table Job position) and Job Position as Single line text field.
What I want to achieve through fetch XML is the below:
When I filter a Job position that has the Parent Job position blank or null (which means it is the parent) I don't want the query to rely on the link-entity. Because the link-entity purpose is that if Job position has a parent job position that means not null and it is not the parent it should return as a result the Parent job position name of the Job position that I am filtering on.
I tried the below fetchXML query:
The above query returns nothing knowing that the above IT manager position is the parent position and the field is null.
I believe this is because the link-entity is getting executed and found that the parent is null so the logic that should be applied is to not execute the link entity if the parent job is null.
What should be the updated query for this scenario? Could you please provide an example?
Any help is highly appreciated.
Best regards,
EBMRay