Hi @Anonymous ,
In operator is not suggested as it's not delegable for sharepoint.
I would recommend you use IsBlank() & LookUp() function to check there are any records with this element.
If(
IsBlank(LookUp('SP list', <ColumName>=<TheElement>).ID),
Patch('SP list',Defaults('SP list'),{ <ColumName>:<TheElement>}),
Notify("The element already exists!")
)
For example:
If(
IsBlank(LookUp('SP list', Title=Textinput1.Text).ID),
Patch('SP list',Defaults('SP list'),{ Title:Textinput1.Text}),
Notify("The Title already exists!")
)
Hope this helps.
Sik