web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Cloud flow running int...
Power Automate
Unanswered

Cloud flow running into issues

(0) ShareShare
ReportReport
Posted on by
I am working on a cloud flow to parse a teams message when added to a chat. And the content is along the lines of "Can I get 20 tasks for unit 4 please". I set up variables to store the Task count and Unit number as a integer and string repsectively then the issue comes right after in the compose action. I think my expression is wrong but this is the error I'm getting - "Unable to process template language expressions in action 'ComposeTask' inputs at line '0' and column '0': 'The template language function 'indexOf' expects its first parameter to be of type string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#indexof for usage details.'." the expression i wrote is "
int(substring(triggerOutputs()?['body']?['content'], add(indexOf(triggerOutputs()?['body']?['content'], 'tasks'), -3), 2))" for task count and 
"substring(triggerOutputs()?['body']?['content'], add(indexOf(triggerOutputs()?['body']?['content'], 'unit'), 5), 2)" for unit number please help.
Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 820

#3
Haque Profile Picture

Haque 505

Last 30 days Overall leaderboard