HI:
I'm tring to automaticly create new records on a sharepoint list(list_a), base on the quantity and values of a filter gallery(Gallery4).
This next example works fine, creating the records I want each one with the one of the values(value_1) of the Gallery4
ForAll(
Gallery4.AllItems;
Patch(
'list_a';
Defaults('list_a');
{value_1=Subtitle3.Text)}
)
)
Now I want to substitude value_1 with a lookup value(lu_value) to another list, si I have tried something like this:
ForAll(
Gallery4.AllItems;
Patch(
'list_a';
Defaults('list_a');
{lu_value=Subtitle3.Text)}
)
)
With htis, I get an error saing the lu_value is expecting a record and is getting a number, so i have tried this:
ForAll(
Gallery4.AllItems;
Patch(
'list_a';
Defaults('list_a');
{lu_value=Lookup('list_b'; ID=Subtitle3.Text)}
)
)
With this I get an error, saying that lu_value is expecting another kind of record, though lu_value is a lookup field to "list_b".....
Any clue how to solve this?
Thanks in advance.