Forum Discussion
Microsoft Planner @Mention and Comment Notification in Microsoft Teams - NEW VERSION
Thanks for sharing the solution MatthewJamesDavis.
When I ran the flow, it failed indicating the action 'get a task' failed. Then, I checked the split expression and changed the end of my organization Planner URL, but again I got the same result. How can I fix this?
split(split(substring(body('Html_to_text'),lastIndexOf(body('Html_to_text'),'.planner/mytasks?')),'?')[0],'.planner/mytasks?')[1]
Thanks,
Ruhama
- samueljrodriguezFeb 27, 2025Copper Contributor
The get a task formula needed to be changed on my end. It didn't like the tasks or the "?" question mark in the expression. It's working as expected now. I've copied a version of what I had to change.
split(split(substring(body('Html_to_text'),lastIndexOf(body('Html_to_text'),'%2FHome%2FTask%2F')),'%3F')[0],'%2FHome%2FTask%2F')[1]
- DilKryMar 27, 2025Copper Contributor
I am getting an error either method I use. When I add just lastIndexOf(body('Html_to_text'),'/Home/Task/') or lastIndexOf(body('Html_to_text'),'%2FHome%2FTask%2F') into a variable, the variable comes back with a -1. So I looked at the value of body('Html_to_text') and I could not find any value in there called /Home/Task/ so that is why I am getting a -1 value. Where in the email was the HTML to Text step supposed to add a "/Home/Task/" to the values?