I am using the With function to use the data from a filtered collection in creating another collection. It is not allowing me to properly access the value of a choice column. Value should be the correct next step but it doesn't like it at all. ITContacts is a collection in the app.



With(
{wFilterContacts:
Filter(ITContacts, Email = ThisItem.PrimaryContact)
},
ClearCollect(Primary,
{
Number: wFilterContacts.WorkPhone,
Type: "BP",
SortOrder:
If(
wFilterContacts.PrimaryAfterHoursPhone = "Business Phone", 1,
wFilterContacts.PrimaryAfterHoursPhone = "Mobile Phone", 2,
3
)
},
{
Number: wFilterContacts.CellPhone,
Type: "MP",
SortOrder:
If(
wFilterContacts.PrimaryAfterHoursPhone = "Mobile Phone", 1,
2
)
},
{
Number: wFilterContacts.HomePhone,
Type: "HP",
SortOrder:
If(
wFilterContacts.PrimaryAfterHoursPhone = "Home Phone", 1,
wFilterContacts.PrimaryAfterHoursPhone = "Other Phone", 4,
3
)
},
{
Number: wFilterContacts.Other_x0020_Phone,
Type: "OP",
SortOrder:
If(
wFilterContacts.PrimaryAfterHoursPhone = "Other Phone", 1,
4
)
}
)
)