Hi All,
I'm trying to work with a GUID that I've saved in a collection.
I do that with the follow code:
Collect(COLRefID,{RefID:Text(GUID())})
When I want to patch a couple of input field from my App to the SharePoint list, I want to use the generated GUID from my collection (And use the same GUID in a later process in my app).
I've created the follow patch code to achieve my goal, but something is not right:
Patch('Item Request',Defaults('Item Request'),{'Item number':TXT_NewItemNumber_1.Text,'Item name':TXT_NewItemname_1.Text,Division:DR_DivisionSelect_1.SelectedText.Value,Category:DR_ProductSelect_1.SelectedText.Value,RefID:COLRefID.RefID})
I've got the following issue:
The type of this argument 'RefID' does not match the expected type 'Text'. Found type 'table'.
What I'm doing wrong?
When I use the follow command (without the collection option) it's working fine, but I need the same GUID (RefID) in the next step of my app.
Patch('Item Request', Defaults('Item Request'),{'Item number':TXT_NewItemNumber_1.Text,'Item name':TXT_NewItemname_1.Text,Division:DR_DivisionSelect_1.SelectedText.Value,Category:DR_ProductSelect_1.SelectedText.Value,RefID:Text(GUID())})
Is there someone who know what I'm doing wrong/ how to fix this?
Thanks in advance.