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
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

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

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (9,657)