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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Count of a flow get it...
Power Automate
Answered

Count of a flow get items step

(0) ShareShare
ReportReport
Posted on by 206

HI,

 

  • I have a flow with a Sharepoint get items step.  This step name is Shot1Missing
  • I successfully filtered the population using "Active eq 1 and Shot1Received eq null"
  • Next, I update the sharepoint list item to flag that record to indicate the Teammate needs Shot1
  • I will repeat these steps above in the flow  for Critical shots, to include shot 2 and the booster , shot 3 , so I want a count of each shot type required
  • I will send a formatted HTML table via Sendmail v2 to the office staff to follow up.  In this email, I want to have each table in different parts of the email , with a COUNT of each shot type missing in that table header

I have not been able to solve this expression error:

 

I create a compose step and opened the Expression tab to create this count step.

  • Using an example I found online, I copied and pasted his example into the compose as an expression - "@length(body('Get_items')?['value'])"  
  • I changed Get_items to my specific get items step name above  of Shot1Missing  "@length(body('Shot1Missing')?['value'])"  Expression invalid error received
  • I tried building the expression manually:  First, using the expression tab, I types @length , added an opening Paren, switched to Dynamic, selected the Shot1Missing value from the list of items, and the expression builder added this:  "@length(outputs('Shot1Missing')?['value'])"   Expression invalid error received, and cannot see the issue.   Saved, quit out, tried again, same error.  

 

What am I missing?  Thanks

Categories:
I have the same question (0)
  • MrAutomate Profile Picture
    206 on at

    Here is a shot ofPA_CountExpected.png the count I expect to capture for the Email

  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @MrAutomate ,

     

    When you build the expression, you don't need to use '@'.

    vxiaochenmsft_0-1643767441915.png

     

    vxiaochenmsft_1-1643767454258.png

     

    Best Regards,

    Wearsky

     

  • MrAutomate Profile Picture
    206 on at

    Wearsky, thanks, worked great!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard