Hey,
So I've made a custom connector to get user data (custom security attributes) from Entra ID, but after it's all set up, the data returned in my collection inside PowerApps is incomplete.
This query in Postman works just fine, and returns all data:
https://graph.microsoft.com/v1.0/users/?$select=id,displayName,companyName,customSecurityAttributes,accountEnabled&$filter=companyName eq 'Comtegra S.A.'&$count=true
+ header: ConsistencyLevel: eventual
However when I try it with the same query in PowerApps, it stops about 3/4ths of the way.
This is how it's set up:
Clear(colFilteredOutUsers);
Clear(colUsers);
ForAll(GetuserfromEntraID.APIcall({ConsistencyLevel: "eventual",'$select':"id,displayName,companyName,customSecurityAttributes,accountEnabled", '$filter':"companyName eq 'Comtegra S.A.'",'$count': "true"}).value As GraphAPI,
If(And(IsBlank(GraphAPI.customSecurityAttributes),GraphAPI.accountEnabled),
Collect(colUsers,
{
ID: Text(GraphAPI.id),
displayName: Text(GraphAPI.displayName),
companyName: Text(GraphAPI.companyName),
accountEnabled: Boolean(GraphAPI.accountEnabled),
customAttrib: Boolean(IsBlank(GraphAPI.customSecurityAttributes))
}
),
Collect(colFilteredOutUsers,
{
ID: Text(GraphAPI.id),
displayName: Text(GraphAPI.displayName),
companyName: Text(GraphAPI.companyName),
accountEnabled: Boolean(GraphAPI.accountEnabled),
customAttrib: Boolean(IsBlank(GraphAPI.customSecurityAttributes))
}
)
)
)