Distinct('Asset Category Lookup Table', 'Asset Category List')
It is working fine when testing that screen.
At the final screen on the 'Submit' button, I have the following formula:
Patch('The Assets List', Defaults('The Assets List'),'Asset Category':AssetCategoryDropdown.SelectedText
This is where I get the error as described above: "'This type of argument 'AssetCategory' does not match the expected type 'Text'. Found type 'Record'. Submit.OnSelect"
I have various other inputs in the same patch, which I won't add here for brevity. Several of them are also dropdowns using the same syntax I have used for the 'Asset Category' dropdown, but they are not producing the same error.
I have been over this with a fine tooth comb. The 'Asset Category' column in 'The Assets List' to which I'm patching is formatted as a text column. As far as I'm aware, it's not possible to change a Sharepoint column to a 'record' column. I have tried changing the formula variously to AssetCategoryDropdown.Text, AssetCategoryDropdown.Selected.Value, AssetCategoryDropdown.Selected, AssetCategoryDropdown.Value
etc etc etc
But nothing is working.
2. The second error cryptically says 'The function 'Patch' has some invalid arguments'. But it's only the one other error, so I don;t get it. I'm hoping this will be easier to resolve once I have the 'expected type' error.
It is driving me nuts. I'd be grateful for a solution.