Hi all,
Currently I'm developing an PowerApp. The Powerapp has two screens, the start screen and a request screen.
In the start screen you can choose what you would like to request with a dropdown menu.
In the request screen you have to fill in information that is required or nice to have for the request.
Sort(Table(
{Value: "", Id: ""},
{Value: "Teams", Id: "teams"},
{Value: "Sharepoint", Id: "sharepoint"},
{Value: "Shared mailbox", Id: "sharedmailbox"},
{Value: "Room mailbox", Id: "meetingroom"},
{Value: "Distribution group", Id: "distributiongroup"}
),Value)
But when I for example choose the "Room mailbox" with Id "meetingroom" and instantly click on the submit button I get a popscreen that I need to fill in the data fields for the Sharepoint request.
Switch(
varTypeSelected.Id,
"meetingroom",
ClearCollect(
WarningItemsCollection,
Table(
{
Text: "Name Meetingroom",
Visible: IsBlank(txtMeetingRoomName)
},
{
Text: "Capacity",
Visible: IsBlank(txtMeetingRoomCapacity)
},
{
Text: "Location",
Visible: IsBlank(txtMeetingRoomLocation)
},
{
Text: "Floor",
Visible: IsBlank(txtMeetingRoomFloor)
},
{
Text: "Room type",
Visible: IsBlank(rdoMeetingRoomRoomType.Selected.Value)
},
{
Text: "Fill in other",
Visible: IsBlank(txtRoomTypeRemarksMeetingroom) And rdoMeetingRoomRoomType.Selected.Value = "Other"
}
)
);
With(
{
hasWarnings: CountRows(
Filter(
WarningItemsCollection,
Visible = true
)
) <> 0
},
// Show popup with warnings or send the data to powerautomate (flow)
If(
hasWarnings,
UpdateContext({conPopUpWarning: true}),
Patch(
'ICT Collaboration form Test',
Defaults('ICT Collaboration form Test'),
{
'Environment Type': EnvironmentType.Selected.Value,
RoomMailboxRoomNumber: txtMeetingRoomName.Text,
RoomMailboxCapacity: txtMeetingRoomCapacity.Text,
RoomMailboxLocation: txtMeetingRoomLocation.Text,
RoomMailboxFloor: txtMeetingRoomFloor.Text,
RoomMailboxPhoneNumber: txtMeetingRoomPhone.Text,
RoomMailboxRoomType: rdoMeetingRoomRoomType.Selected.Value,
RoomMailboxRemarks: txtMeetingRoomRemarks.Text
}
)
)
);
"sharepoint",
ClearCollect(
WarningItemsCollection,
Table(
{
Text: "Sharepoint page name",
Visible: IsBlank(txtNameSharepoint)
},
{
Text: "Region",
Visible: IsBlank(cbxRegionSharepoint) Or CountRows(cbxRegionSharepoint.SelectedItems) = 0
},
{
Text: "Department",
Visible: IsBlank(cbxDepartmentSharepoint) Or CountRows(cbxDepartmentSharepoint.SelectedItems) = 0
},
{
Text: "Owner",
Visible: IsBlank(cbxSharePointOwners) Or CountRows(cbxSharePointOwners.SelectedItems) = 0
},
{
Text: "Member",
Visible: IsBlank(cbxSharePointMembers) Or CountRows(cbxSharePointMembers.SelectedItems) = 0
},
{
Text: "Fill in type of critical data",
Visible: IsBlank(txtSharePointCriticalDataType) And TglSharePointCriticalData.Value = true
}
)
);
With(
{
hasWarnings: CountRows(
Filter(
WarningItemsCollection,
Visible = true
)
) <> 0
},
// Show popup with warnings or send the data to powerautomate (flow)
If(
hasWarnings,
UpdateContext({conPopUpWarning: true}),
Patch(
'ICT Collaboration form Test',
Defaults('ICT Collaboration form Test'),
{
'Environment Type': EnvironmentType.Selected.Value,
SharepointPageName: txtNameSharepoint.Text,
SharepointRegion: cbxRegionSharepoint.Selected.Value,
SharepointDepartment: cbxDepartmentSharepoint.Selected.Title,
SharepointCriticalData: TglSharePointCriticalData.Value,
SharepointOwner: cbxSharePointOwners.Selected.DisplayName,
SharepointMembers: cbxSharePointMembers.Selected.DisplayName,
SharepointGuestUsers: txtSharepointGuestUser.Text
}
)
)
);
)
Can you help me with this? To me it feels like a bug, but I am not sure

Report
All responses (
Answers (