Morning all,
I know I've done this before, and for some reason it's gone right out of my head.
I'm incrementing a value by 1 for every button press on a gallery item, and then patching that to a SP list. This is to show what is the most searched field. Doing a patch on every press didn't seem to be reliably going through so I decided to patch a collection with that incrementing value, then send that through to the sharepoint list, but for the life of me I can't seem to get the formula to work (The first patch works fine):
Patch(
faqCol,
ThisItem,
{'# Searches': suggested.'# Searches' + 1});
Patch(
'FAQ Dataset',
LookUp('FAQ Dataset', ID = Value(faqCol.ID)},
{'# Searches': Value(faqCol.'# Searches')})
I've also tried:
Patch(
faqCol,
ThisItem,
{'# Searches': suggested.'# Searches' + 1});
Patch(
'FAQ Dataset',
LookUp('FAQ Dataset', ID = faqCol[@ID]},
{'# Searches': Value(faqCol[@'# Searches']})
Patch(
faqCol,
ThisItem,
{'# Searches': suggested.'# Searches' + 1});
Patch(
'FAQ Dataset',
ID = faqCol[@ID],
{'# Searches': Value(faqCol[@'# Searches']})
None of them seem to work. Any suggestions?