@RandyHayes Hello Randy and All,
I need help with the edit form. there are two SharePoint lists
1. ListA: FormA. working fine.
2. ListB: FormB_1 & FromB_2. The SharePoint formB_1 and FormB_2 were customized via PowerApps, which has issue.
When users submit a new request with ListA (FormA), another new request for ListB (FormB_1 & FormB_2) was generated/copied by Flow in the backend.
No Galleries. ListA works fine. ListB works until I added a new item to FormB_2, and published it. then when creating new records in ListA (FormA), no matter which record I open by clicking on the "Edit" button in the SharePoint listB, the edit form is showing data for the first record in my SharePoint list and not for the current record I selected. for the existing records, works fine.
The Item property of forms (FormB-1 & FormB_2) is set to:
If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),First(ListName),SharePointIntegration.Selected)
I tried to change it to:
1. If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),
LookUp(ListName,ID= SharePointIntegration.SelectedListItemID),
SharePointIntegration.Selected)
2. If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),Defaults(istName),SharePointIntegration.Selected)
3.Last(FirstN(YOUR_LIST_NAME, SharePointIntegration.SelectedListItemID))
4,SharePointIntegration.Selected
5. Tried to add
OnSuccess action of the formB_1 and FormB_2 : Set(glbCurrentRecord, Self.LastSubmit)
and changed the Form Item property to: glbCurrentRecord
(not working, I think because FormB_1 and FormB_2 were created by flow.)
Any help to fix this will be appreciated.