So I am trying to do something with PA that is somewhat difficult and I am getting stuck at more than one place. My end-goal is to create a flow that will do the following:
1- get all the items from a ledger SharePoint list.
2- only keep the items that have an outstanding balance. (the item still needs to be paid)
3- sorts the items based on the name column.
4- somehow creates a bill in a pdf form for each of the names in the now sorted and filtered ledger list
I have tried and tried to do this using many different methods and have fallen short every time. I am now going back to the start and trying the method of "asking the pros" on here. 🙂
My question is about the Filter Query option in the get all SharePoint items function. What I was doing before was creating an array variable, using a condition to see if the paid amount was not equal to the billed amount and if that was true it meant that there was still a balance on that item to be paid and so I appended it to the array. This worked fine but seems inefficient as the Get All function already goes through 'N' items and doing so again seems like a waste of time. My issue is that apparently I can't just say any of the following...
AmountBilled eq AmountPaid (both of these columns are currency columns and not calculated values)
AmountOutstanding ge 0 (AmountOutstanding is a calculated column so that's why this won't work)
I have not been able to figure out how to filter by comparing 2 columns in the same list. What I want/need is something like: If(AmountPaid eq AmountBilled, keep, discard) but I'm not sure how to achieve this.