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 / Help with Parse JSON c...
Power Automate
Unanswered

Help with Parse JSON code - Send Microsoft Form attachment with an Email

(0) ShareShare
ReportReport
Posted on by 4

Hi Community,

My workflow is to send an email with attachment that is submitted in a Microsoft Form. This workflow works fine if there is an attachment. If there is no attachment in the form it fails. May I know how do I manipulate this code below to attach file only when it is attached to the form pls? Much appreciate your help. Thank you!

 

SG14_0-1685609758209.png

Sample Code:

{
    "type""array",
    "items": {
        "type""object",
        "properties": {
            "name": {
                "type""string"
            },
            "link": {
                "type""string"
            },
            "id": {
                "type""string"
            },
            "type": {},
            "size": {
                "type""integer"
            },
            "referenceId": {
                "type""string"
            },
            "driveId": {
                "type""string"
            },
            "status": {
                "type""integer"
            },
            "uploadSessionUrl": {}
        },
        "required": [
            "name",
            "link",
            "id",
            "type",
            "size",
            "referenceId",
            "driveId",
            "status",
            "uploadSessionUrl"
        ]
    }
}

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,474 Most Valuable Professional on at

    Hi @SG14,

     

    You could check if that field is empty in condition action (before the parse json) and move all attachment related actions to the If No section of that condition action.

  • SG14 Profile Picture
    4 on at

    Hi, I'm not familiar with condition action in flow. Any guidance will be helpful. Thank you. 

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 339 Super User 2025 Season 2

#1
trice602 Profile Picture

trice602 339 Super User 2025 Season 2

#3
David_MA Profile Picture

David_MA 270 Super User 2025 Season 2

Last 30 days Overall leaderboard