Hi all,
I have a collection(AvailableRoomCollection) like below,
And If I click on MeetingTimeSuggestion then there is another collection like below
So I want to get data where OrganizerAvailability = "Free", I tried using the filter function but it didn't work. I get an error "Invalid Argument Type". I am getting "Invalid argument type" on the equals sign '='
ClearCollect(testColection,
Filter(AvailableRoomCollection, MeetingTimeSuggestions.OrganizerAvailability = "Free")
);
Any help is appreciated. Thanks in advance.
Solved! Go to Solution.
Hi @jean2 ,
According to the formula that you mentioned, I think there is something wrong with it. Within your Filter function, the MeetingTimeSuggestions.OrganizerAvailability formula would return a Table value, it could not be compared with a Text value directly.
On your side, please consider modify your formula as below:
ClearCollect(
testColection,
Filter(
AvailableRoomCollection,
Not("Busy" in Concat(MeetingTimeSuggestions, OrganizerAvailability & ";"))
)
);
Please consider take a try with above solution, check if the issue is solved.
Best regards,
I think there is a column name issue.
Your column name is MeetingTimeSuggestion and you are using MeetingTimeSuggestions.OrganizerAvailability
Can you please re confirm the spelling you are using in the Filter function?
To test scenario out I created a simple test and its working fine. This is on my button on select.
Collect( AvailableRoomCollection, { Name: "One", MeetingTimeSuggestion: { Title:1 ,OrganizerAvailability: "Free" } }, { Name: "Two", MeetingTimeSuggestion: { Title:2 ,OrganizerAvailability: "Busy" } } ) ; ClearCollect(testColection,
Filter(AvailableRoomCollection, MeetingTimeSuggestion.OrganizerAvailability = "Free")
);
Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.
Thanks,
Rahber
Hi @Rahber,
oh sory, there's a typo in my question. The actual column name is MeetingTImeSuggestions same as in the filter function.
Hi @jean2 ,
According to the formula that you mentioned, I think there is something wrong with it. Within your Filter function, the MeetingTimeSuggestions.OrganizerAvailability formula would return a Table value, it could not be compared with a Text value directly.
On your side, please consider modify your formula as below:
ClearCollect(
testColection,
Filter(
AvailableRoomCollection,
Not("Busy" in Concat(MeetingTimeSuggestions, OrganizerAvailability & ";"))
)
);
Please consider take a try with above solution, check if the issue is solved.
Best regards,
User | Count |
---|---|
221 | |
99 | |
94 | |
55 | |
36 |
User | Count |
---|---|
273 | |
105 | |
104 | |
60 | |
60 |