Any help would be appreciated.
For sake of explanation, I have two tables (SharePoint Lists).
|Reminder1||Bob||15||Do your thing||Small|
|Reminder2||Judy||5||Do the other thing||Medium|
|Reminder3||Jane||11||Do the last thing||Large|
|Reminder4||Jane and Judy||7||Do Something||Medium|
|Reminder6||Steve||2||Just do it||Large|
In my flow, I want to be able to get the appropriate item(s) from the Reminders table (done), look at the value of the Size column (done), then get all of the items from the Cases table (done) and find the days for which the column (specified from the Size Column) match the equation of Today+Days.
For example, if the Flow is triggered for reminder 4, I want to be able to evaluate the "Medium" column in the cases table, and find any that match Today+7 and send a reminder to Jane and Judy.
Most of that, I'm totally good with, but I can't find a way to specifically use the appropriate column. I thought i could pull in the list and then do a foreach. Probably not the most efficient, but doable. If I use a variable called VarColumnName to store Medium (and correct for the horrible end users who put spaces in the real column names) is there any way to pre-process the variable so that the flow would get "items('ApplyToEach')?['Medium']
Use expression as a parameter of variables() function is not workable.
As a workaround, you could create a Switch action to guide the Flow go to corresponding branches according to Size value of Reminders tables. For example:
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
While I think that would work, it would nullify the intent of the workflow. Part of my reason for making the workflow this way is to allow the users to modify the timings of their reminders and what reminders they choose without constant intervention to the flow. If I use a switch like that, I'll have to update the flow any time they add or remove a reminder.
I did receive some helpful input from a coworker who suggested I use an array, but I think it comes down to the same problem.
As an example, I rewrote my Flow to illustrate the issue:
If I hard code the filter like this:
Then I get the proper output:
But if I put the same text string into a variable, and use that as the query, I get nothing.
Again, much respect, appreciation, and admiration to anyone who can point me in the right direction.
When you get the column name into a variable, you can use the variable in the Filter Query field of the Get items action, where you get the cases.
So your Filter Query field could be: <variable ColumnName> eq <utcNow()+7 as 'yyyy-MM-dd'
Would that do the trick for you?
Kind regards, John
I don't think so. At least I haven't been able to make that work.
Here is the output of where I set the variable:
In the next step I do as you suggest (I think). In this case I'm using the starts with and "3799-" just for the example..
But it doesn't return anything even though the item exists in the inputs.
And I don't think there is a way to see what it's actually processing.
Check out the on demand sessions that are available now!
ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.
Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!