I'm facing an issue with the Patch function in Power Apps when attempting to add data to the JerarquíaGeográfica table.
I have three dropdowns, drpPaises, drpClanes, and drpConsejos, and I want to create a new record in the JerarquíaGeográfica table using values selected from these dropdowns. Here's the formula I'm using:
Patch(JerarquíaGeográfica, Defaults(JerarquíaGeográfica),
{
IDPais:{Id: drpPaises.Selected.ID, Value: drpPaises.Selected.DescripcionPais},
IDClan:{Id: drpClanes.Selected.ID, Value: drpClanes.Selected.DescripcionClan},
IDConsejos:{Id: drpConsejos.Selected.ID, Value: drpConsejos.Selected.DescripcionConsejo}
}
);
These 3 columns are of the Lookup type in the JerarquíaGeográfica table.
Regards