cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rjack
Resolver I
Resolver I

Error: A 'StartArray' node was expected.

Hello,

 

I'm trying to send an email using 'send and HTTP request to SP' but receiving the below error. any suggestions please? 

I wanted to send email from no-reply@domain.com. Since I couldnt find any possible solution I'm trying to email from no-reply@sharepoint.com

 

Code: 

{
'properties': {
'From': 'no-reply@sharepointonline.com',
'To': { 'results': ["name@domain.com"] },
'Body': "Text Body",
'Subject': 'Subject line'
}
}

 

Error: An unexpected 'StartObject' node was found when reading from the JSON reader. A 'StartArray' node was expected.

 

rjack_0-1624394308471.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
rjack
Resolver I
Resolver I

The joy of copy paste!!! Wasted hours and mental blocks!!! 

 

the 2nd headers "content-type" had spaces after the word "type". 

View solution in original post

1 REPLY 1
rjack
Resolver I
Resolver I

The joy of copy paste!!! Wasted hours and mental blocks!!! 

 

the 2nd headers "content-type" had spaces after the word "type". 

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,365)