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 / DisplayName gives erro...
Power Automate
Answered

DisplayName gives error "Enter a valid json."

(0) ShareShare
ReportReport
Posted on by 8

Hi,

 

I'm trying to build automated e-mail with Flow from Sharepointlist attachments. There is instructions: https://flow.microsoft.com/en-us/blog/multiple-attachments-single-email/

 

What I'm doing wrong?

 

"Name": @{items('Apply_to_each').DisplayName}

 Gives error: Enter a valid json.

 

If I remove "Name", error disappear but flow doesn't work.

 

-Juho

Categories:
I have the same question (0)
  • Verified answer
    v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @Jube1,

     

    Please add a comma "," after the "DisplayName" dynamic content if the Name is the first parameter.

    or add a comma "," after the expression if the ContentBytes is the first parameter.

     

    Please let me know if your problem could be solved.

     

    Best regards,

    Alice

  • Verified answer
    fermoreno Profile Picture
    33 on at

    You are just missing a comma after the first property, the last element cannot finish with comma. If you only have one as you mention (removing name and no comma) works.

     

    Let me know how it goes.

     

    Fer

    flowcomma.png

     

     

  • Jube1 Profile Picture
    8 on at

    Brilliant! Now it works. Thanks for the help!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 245

#2
David_MA Profile Picture

David_MA 216 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 212

Last 30 days Overall leaderboard