I have created a custom form for a SharePoint list that lets the user enter a ZIP code in a field and then (through a Flow which calls a webservice) shows only the cities for that zip code in a dropdown list.
When I edit an existing item in my SharePoint list, in the custom form I need to access the item's ZIP code value in order to preload my dropdown list with the cities. So I tried these different techniques in the OnVisible event but none would work:
Set(dcv5;DataCardValue5.Text);;Set(ville;SharePointIntegration.Selected.ID);;Set(etabVille;First(Etablissements).scECTRAdrVille)
Each of these variables (DataCardValue5 is the data card containing the ZIP code) is displayed in a label on the list's form but they're empty except for the last one which always returns the city of the first item in the list (of course).
How can I access my current list item's data in the OnVisible event of the form ?