Hello guys
I'm building a normal gallery for my app but there is a label that I need to show the text based on if a field have data or not.
For this I'm using this expresion:
If(IsBlank(ThisItem.'New_owner'),ThisItem.'System Owner',ThisItem.'New_owner')
What I'm trying to achieve is that if the New_owner field is blank them bring me the text in the System Owmner field, if not, take the text from New_owner.
However, powerapps does not allow me to do this because it says "invalid argument type (text). Expecting a record value instead).
thanks for the help.
Solved! Go to Solution.
If System Owner is of type text, then change your formula to:
Coalesce(
ThisItem.'New_owner'.DisplayName,
ThisItem.'System Owner'
)
@dev85 Where does the Data come from? What field type is "New_owner" and "System Owner"? Is it a TextField or a person field? (Assuming you are using SharePoint)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Assuming it is a person column you are working with...
Please consider changing your Formula to the following:
Coalesce(
ThisItem.'New_owner'.DisplayName,
ThisItem.'System Owner'.DisplayName
)
Your trouble is that you are trying to display a record in a text property...you need to specify the column you want. In the above, DisplayName was chosen.
I hope this is helpful for you.
You are correct, the info is coming from a sharepoint list. The new_owner field is a type person and the system_owner is a type text.
If System Owner is of type text, then change your formula to:
Coalesce(
ThisItem.'New_owner'.DisplayName,
ThisItem.'System Owner'
)
User | Count |
---|---|
247 | |
103 | |
82 | |
49 | |
43 |