cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ShiraNu
Level: Powered On

Json code throght flow 365 work fine only to my email account - blank mail to ther participants

Hi, 

I build flow with Json code. The flow get data from sharepoint list and send an approval request throght mail. Json code anable the user to approve or reject by clicking on the button in the mail. 

The code work fine when i send it to my email address, but when i test the flow to other participants, they get an empty email.

 

Please your help how i can enable all outlook users to see the email.

 

 

2 REPLIES 2
Super User
Super User

Re: Json code throght flow 365 work fine only to my email account - blank mail to ther participants

If you could provide an expanded screenshot of your Flow and steps, and of any detailed error messages you're receiving we could likely better assist you.

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

ShiraNu
Level: Powered On

Re: Json code throght flow 365 work fine only to my email account - blank mail to ther participants

Hi,

This is the flow i have, which get an item from list, compose json code and send an email with the output. 

flow.JPG

 

Below is the received massage:

Capture7.JPG

It's work great when i put my email in 'sen a mail' block, but when i send it to other people they got blank massage.

 

<script type="application/ld+json">
    {
    "@type": "MessageCard",
    "@context": "https://schema.org/extensions",
    "summary": "This is the summary property",
    "themeColor": "0075FF",
    "sections": [
{
},
{
    "startGroup": true,
    "title": "**Pending approval - Waiver No. **** ver' ****",
    "activityTitle": "Requested by **** department: ****",
    "activitySubtitle": "",
    "facts": [
        {
            "name": "Date submitted:",
            "value": ""
        },
    {
            "name": "Product:",
            "value": " "
        },
    {
            "name": "Plant:",
            "value": ""
        },
        {
            "name": "Details:",
            "value": ""
        },
    {
            "name": "Justification:",
            "value": ""
        },
 {
            "name": "Waiver D/D:",
            "value": ""
        },
        {
            "name": "Link:",
            "value": "[Click here to view the item]()"
        }
    ]
},
{
    "potentialAction": [
        {
            "@type": "ActionCard",
            "name": "Approve",
            "inputs": [
                {
                    "@type": "TextInput",
                    "id": "comment",
                    "isMultiline": true,
                    "title": "Reason (optional)"
                }
            ],
            "actions": [
                {
                    "@type": "HttpPOST",
                    "name": "Submit",
        "body":"{\"itemID\":\"@{body('Get_item')?['ID']}\",\"comment\":\"{{comment.value}}\",\"Approve\":\"Yes\"}",
                     "target": "https://.....",
                                "headers": [
                                 {
                                "name": "Authorization",
                                "value": ""
                                 }
                           ]
                }
            ]
        },
        {
            "@type": "ActionCard",
            "name": "Reject",
            "inputs": [
                {
                    "@type": "TextInput",
                    "id": "comment",
                    "isMultiline": true,
                    "title": "Reason (optional)"
                }
            ],
            "actions": [
                {
                    "@type": "HttpPOST",
                    "name": "Submit",
          "body":"{\"itemID\":\"@{body('Get_item')?['ID']}\",\"comment\":\"{{comment.value}}\",\"Approve\":\"No\"}",
                                "target": "https://.....",
                                "headers": [
                                 {
                                "name": "Authorization",
                                "value": ""
                                 }
                           ]
                }
            ]
        }
    ]
}
]
}
</script>

Please your assistance, Thanks

 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (6,217)