cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Send email to Sharepoint Group getting data from REST call

I'm trying to set a REST CALL to:

"https://...../_api/SP.Utilities.Utility.SendEmail",

method: POST,

body:

 

          {  
            'properties': {  
                '__metadata': {  
                    'type': 'SP.Utilities.EmailProperties'  
                },  
      
                'To': {  
                    'results': ['test group ']  
                },  
                'Body': '<p>This is a test email</p>',  
                'Subject': 'Test email from MS Flow'  
            }  

 

 

It does not work because it's not properly formatted as JSON... i tried even:

 

 

          {  
            "properties": {  
                "__metadata": {  
                    "type": "SP.Utilities.EmailProperties"  
                },  
      
                "To": {  
                    "results": ["Bulk Data Alteration - Supervisors"]  
                },  
                "Body": "<p>This is a test email</p>",  
                "Subject": "Test email from MS Flow"  
            }  

 

 


serviceRequestId: be13629f-2030-a000-0886-2796d502dbcb

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: Send email to Sharepoint Group getting data from REST call

2 REPLIES 2
Highlighted
Frequent Visitor

Re: Send email to Sharepoint Group getting data from REST call

Microsoft
Microsoft

Re: Send email to Sharepoint Group getting data from REST call

Hi,

 

Thank you for your follow up! Hopefully it will be useful for future communities users.

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,924)