Hello everyone, I'm trying to filter tasks for user visualization in PowerApps associated with a group in my SharePoint. I have these two lists below, where in UserGroupStatus, all users are listed, and in TB_FORM, the tasks that will be displayed to the users are stored. For example, the task in TB_FORM with ID 1 and that belongs to Group N1 and N2 (there can be multiple groups and multiple users) should appear for all users in the UserGroupStatus list who are associated with these groups. I tried to do this as follows:
In my app, in the OnStart property, I added this code to convert both to the string type:
App = OnStart property
ClearCollect(
colUserGroupStatus,
AddColumns(
UserGroupStatus,
"UserEmailStr", UserEmail.Email,
"GroupStr", Group.Value
)
);
And in the Items property of my gallery where I am displaying the tasks in this way:
(Gallery) taskList = Items
Filter(
TB_FORM,
DueDate > Today(),
Group.Value = LookUp(
colUserGroupStatus,
UserEmailStr = User().Email
).GroupStr
)
However, the problem and where I need help to solve this is that even after converting them to the string type, the error of different types persists, follow below my sharepoint lists structure
- TB_FORM List:
- ID: Number, a unique identifier for the task.
- Title: Text, the title of the task.
- DueDate: Date, the due date of the task.
- Modified: Date, the date when the task was last modified.
- Created: Date, the date when the task was created.
- Created By: User, the user who created the task.
- Modified By: User, the user who last modified the task.
- Group: Choice, the group to which the task is assigned.
- formUrl: Hyperlink, the URL of the form associated with the task.
- UserGroupStatus List:
- ID: Number, a unique identifier for the record.
- UserEmail: User, the email of the user.
- GroupStatus: Choice, the group to which the user belongs.
- CheckboxStatus: Yes/No (Boolean), the status of the checkbox.
- DataConclusao: Date, the completion date of the task.
- TaskID: Lookup, linked to the ID of the TB_FORM list, represents the task that the user is performing.
Errors screenshots bellow
![]()
