I have been trying this and to some I think success
This automation retrieves the holiday spreadsheet and compiles the data with JSON as follows:
[
{
"weekend": [
{
"weekend": "3, 4, 10, 11, 17, 18, 24, 25, 31, 1,2,3,4,5,6 January"
},
{
"weekend": "1, 7, 8, 14, 15, 21, 22, 28, 12,13,14,15,16 February"
},
{
"weekend": "1, 7, 8, 14, 15, 21, 22, 28, 29, March"
},
{
"weekend": "4, 5, 11, 12, 18, 19, 25, 26, 3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19 April"
},
{
"weekend": "2, 3, 9, 10, 16, 17, 23, 24, 30, 31, 4,25 May"
},
{
"weekend": "6, 7, 13, 14, 20, 21, 27, 28 , June"
},
{
"weekend": "4, 5, 11, 12, 18, 19, 25, 26, 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 July"
},
{
"weekend": "1, 2, 8, 9, 15, 16, 22, 23, 29, 30, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17 August"
},
{
"weekend": "5, 6, 12, 13, 19, 20, 26, 27, September"
},
{
"weekend": "3, 4, 10, 11, 17, 18, 24, 25, 31, 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18 October"
},
{
"weekend": "1, 7, 8, 14, 15, 21, 22, 28, 29, November"
},
{
"weekend": "5, 6, 12, 13, 19, 20, 26, 27, 2,3,4,23,24,25,26,27,28,29,30,31 December"
}
]
}
]
This has parsed the json as a single collection incorporating the Holiday and weekend field and adding the month at the end (in the spreadsheet they are in three different cells)
I then use SEARCH ROWS and filter to current month
Adding a filter
I then want to check the JSON output against the spreadsheet that holds the customer input.
I use does not contain but I believe the issue I am having is I want the search to look at each number in the holidays and compare it against each number in the customer input and (ideally) take a record of the matching entry - I am trying to look for bookings that customers have made that are holiday/weekends and flag this to via email.
I then output the data to a text integrator
at the moment it is only identifying the row and name of parent but it would be good if it also highlighted the holiday/weekend day error.
I am finding the search through cell and find any of the dates in the holiday/weekend and indicate a match.