I have a Microsoft Power App that I'm currently developing for my company to keep track of contacts for different projects. One thing that's crucial to this is being able to input new contacts to the dataset, as it's constantly changing and expanding.
The main issue I'm running into with this (which may be due to me only being able to access the web app, not the full desktop app) is that when I try to send the 'person' type to the List using the Patch() function as such,
Patch(
ListName,
Defaults(ListName),
{
Person: ComboBox2.Selected
}
)
I get the following errors:
Invalid argument type. Expecting a record value, but of a different schema.
- And -
Missing column. Your formula is missing a column 'Claims' of type 'Text'.
I looked into this because surely I wasn't actually missing this 'Claims' column, as it's nowhere in any of my datasets or the app. However, I came to find out that apparently the 'person' type has a hidden Claims column in each entry. I tried adding records manually like this:
Person: {
Claims: LookUp(Office365Users.SearchUserV2({searchTerm: ComboBox2_1.Selected.Email}),
Value = ComboBox2_1.Selected.Email).Claims,
DisplayName: ComboBox2_1.Selected.DisplayName,
Email: ComboBox2_1.Selected.Email
}
To which I received the following error:
Incompatible type. The 'claims' column in the data source you're updating expects a 'text' type and you're using a 'error' type
Meaning I couldn't actually retrieve claim information, so it's not there for the person I'm fetching (I think). I'm assuming there are mismatched types here because I'm on the web app or something like that, but I would like to see if anyone has similar experience with this issue to say for sure. I'm thinking this may also be the reason for the first error, 'Invalid argument type,' suggesting I am giving it a record, but it needs to be formatted differently to work properly. Any help is tremendously appreciated, I've been going in a circle all day trying to get this to work.