cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GianGian
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
GianGian
Frequent Visitor
2 REPLIES 2
GianGian
Frequent Visitor

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (23,482)