Hello,
I have a gallery that is powered by a distinct Excel list of transaction numbers. I am trying to enable users to click on the arrow in a gallery item to take them to a form (although a drop down would also work). If the selected gallery item already exists in another SharePoint list, I want it to take them to edit the existing record. If it does not already exist, I want the form to pre-populate with the transaction number in one of the fields.
The current code I have for the right arrow button in the gallery is:
Set(recordID, LookUp('Data Source','SP List Column Name','Excel Data Source Column Name'));
If(IsBlank(recordID),NewForm(Form Name), EditForm(Form Name));
Navigate(Screen Name);
I am receiving an error that is an invalid argument type (text) and it is expecting boolean instead.
I also setting the form item property = recordID.
Any help with this error would be greatly appreciated. Thank you!