I feel like I'm spinning in the same loop on a project. I'm trying to use the 'Apply_to_each' columns from one Get Items action to filter a child Get Items Action. Is there a way this is possible.
The Parent Get Items pulls in the company credit card transactions that get loaded up into a sharepoint list. The Child Get Items I want to pull the submitted receipts from the card holder that meet the following:
Amount = Amount
Matched = false
TransDate < PostingDate
TransDate >= PostingDate-6
This is the OData I've come up with on the Child Get Items:
Matched eq bool(false) and Amount eq items('Apply_to_each')?['Amount'] and Transaction_x00200_Date lt items('Apply_to_each')?['Posting_x0020_Date'] and Transaction_x00200_Date lt addDays(items('Apply_to_each')?['Posting_x0020_Date'], -6)
I know I'm the noob that created his lists with spaces, lesson learned. I've tried playing with the format on the Dates, working on the false boolean, and keep coming back to this error.
{
"status": 400,
"message": "The expression \"Matched eq False and Amount eq 15 and Transaction_x0020_Date lt 07/02/2018 and Transaction_x0020_Date ge 06/26/2018\" is not valid.\r\nclientRequestId: 0667323e-6289-4704-9c62-a981fbb0b304\r\nserviceRequestId: cf22789e-10ad-6000-fd20-b722f0742ad5"
}
I'm trying to update captured information from receipt submissions to be able to properly code credit card expenses without the arduous task of emailing the card holders endlessly to get more info on each transaction.
Please help me figure out what I'm doing wrong.