Hi @v-jefferni
Unfortunately this formula does not work. I also believe that I did not explain what I need correctly so here goes a, hopefully better description of what I need"
In DataCardValue1 the Manager of the user auto-populates. In most cases this will be their team manager but in some instances, where there is no Team Manager, the name that auto populates will be that of the user’s regional manager. – This is a straight forward situation that uses the formula
{ '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser", Claims: "i:0#.f|membership|" & Office365Users.ManagerV2(User().Email).mail, Department: "",
DisplayName: Office365Users.ManagerV2(User().Email).displayName,
Email: Office365Users.ManagerV2(User().Email).mail, JobTitle: "", Picture: "" }
Based on the name displayed in DataCardValue1, using the formula below, DataCardValue2 now shows the name of the manager of the person listed in DataCardValue1.
{ '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser", Claims: "i:0#.f|membership|" & Office365Users.ManagerV2(DataCardValue1.Selected.Email).mail, Department: "", DisplayName: Office365Users.ManagerV2(DataCardValue1.Selected.Email).displayName, Email: Office365Users.ManagerV2(DataCardValue1.Selected.Email).mail, JobTitle: "", Picture: "" }
This all seems pretty normal and easy, the issue arises when the user’s Manager is actually the Regional Manager, because then the name listed in DataCardValue2 is that of the Vice President.
What I wish to achieve is that if the title of the person listed in DataCardValue2 is not Regional Manager then the result will be a blank DataCardValue2.
Alternatively we could say,
if the title of the person listed in DataCardValue1 is Regional Manager then DataCardValue1 should be blank.
Thanks for your assistance