Dear all, I face the following issue:
I have two sharepoint lookup columns "Raum" and "Lagerort" in list "GefStoffVz PLA-AT-LEV". "Raum" looks up to a single choice column in a list "GefStoffVz PLA-AT-LEV Räume", "Lagerort" looks up to a single choice column PlaceSrc in the list "GefStoffVz PLA-AT-LEV Lagerorte".
List GefStoffVz PLA-AT-LEV Lagerorte additionally has a column "RoomRef" which assignes rooms from list "GefStoffVz PLA-AT-LEV Räume" to the "PlaseSrc" column
I use modern dropdowns in both cases.
Raum_drp
Defaultselecteditems: varThisItem.Raum
Items: Choices('GefStoffVz PLA-AT-LEV'.Raum)
Lagerort_drp
Defaultselecteditems: varThisItem.Lagerort
Items:
Filter(
'GefStoffVz PLA-AT-LEV Lagerorte',
RoomRef.Value = Raum_drp.Selected.Value
).PlaceSrc
Patching those columns with following code:
Patch (
'GefStoffVz PLA-AT-LEV',
LookUp(
'GefStoffVz PLA-AT-LEV',
ID = varSelectedListItemID
),
{
Raum: Raum_drp.Selected,
Lagerort:Lagerort_drp.Selected,
}
)
When I try to patch those two columns as above, column "Rooms" gets patched ok.
For column "Places" I get an error saying that the type record does not match the given type text. How do I need to change that patch code to make it work?
Thanks a lot...