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 / Compose Action output ...
Power Automate
Unanswered

Compose Action output and input is blank

(0) ShareShare
ReportReport
Posted on by 2
My flow begins with > When a new email arrives in a shared mailbox (V2)> My compose action is:
 
if(
   contains(coalesce(triggerOutputs()?['headers']?['subject'], ''), '-'),
   trim(split(split(coalesce(triggerOutputs()?['headers']?['subject'], ''), '-')[0], '"')[1]),
   ''
)
 but the input and output of the compose action is blank. Any idea why? Previously I used 
split(coalesce(triggerOutputs()?['headers']?['subject'], ''), ' ')[0] and it worked fine, but I'm trying to use a dynamic code. 
power automate help.png
Categories:
I have the same question (0)
  • David_MA Profile Picture
    14,614 Super User 2026 Season 1 on at
    If your input is empty, then your expression is doing what you told it to do. According to how I read your expression, it extracts and trims the text between the first hyphen and the first double quote in the ‘subject’ header, if a hyphen is present. If no hyphen is found, it returns an empty string. If nothing is going into your compose action, then your coalesce statement is returns '' which would not contain a hyphen, and thus the output is blank.

    If your old expression worked, why did you change it as I don't understand what you mean by "I am trying to use a dynamic code."
  • TB-17121644-0 Profile Picture
    2 on at
    Yes, that's almost what I want it to do. Extract and trim the text between the first hyphen and the first double quote in the ‘subject’ header. That's the thing, there is a hyphen present each time and it's not extracting anything in the compose action. I changed the code because it didn't work in this specific flow, it just worked in a previous one. I only provided that one in hopes of providing a bigger picture on what I'm trying to accomplish. 

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 538

Last 30 days Overall leaderboard