I have a Canvas app in Powerapp, which has DataSource A where it writes the data. Here I have a Lookup column (CostCenter) which fetches data from DataSource B.
In the PowerApp form,
I have a dropdown1 which has three options, (1,2,3) and Dropdown2 which is a lookup column in DataSource A.
I tried to set condition, when dropdown1 is selected as "1", Dropdown2, should automatically fill a option available in the lookup field. Filling works with switch function, however at the backend when the form is submitted, the value of DropDown2 is not patched in DataSource A.
But, if I do not automatically set the values or limit the options in Dropdown2 based on Dropdown1 selection, when user manually selects the value in Dropdown2, it gets updated in SharePoint List.
Can you help me to achieve this ?