Hello everyone, I'm faced with a problem and I think I'm stuck. So bit of background first
I have two SharePoint lists
ChangeRequest, where I have a custom column called "RFC_ID" , it's single line of text and type number, it just fills in a role of an ID column
EstimationsList, where I have cost estimations for the Change, I'm identifying which change the estimation refers to by providing EstimationList with the "RFC_ID" from Change Request list. This is not a lookup I'm just patching it in the app when users create estimations for a selected request.
I have a formula in the OnStart Property of the app where I get all estimations done by or assigned to currently logged in user, Since user might have multiple Estimations on a request I want to get just Distinct RFC_ID's from EstimationList
This is the formula:
ClearCollect(myCostEstimations, Distinct(Filter('EstimationList', TaskOwner.Email = properEmail), RFC_ID));
Now to my problem:
I want to get all records from ChangeRequest list where the ChangeList RFC_ID is in the myCostEstimations collection. I cannot use the "in" operator since this runs into delegation issues. What I've tried is to loop through all the items of myCostEstimations collection and collect records from ChangeRequest list where RFC_ID = Looped item RFC_ID, but this throws me an error.
This is my formula:
ClearCollect(estimationRFC,[]);
ForAll(myCostEstimations, Collect(estimationRFC, LookUp('ChangeRequest',RFC_ID = ThisRecord.RFC_ID)));
This an error I'm getting on part in red
Error when trying to retrieve data from network: Fetching items failed. Possible invalid string in filter query.
I think it might be an issue with types of data in the end, since just 2 lines below I've implemented similar formula which works but with text columns
Has any one of you faced an issue like that? Thank you in advance for all the help