cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
willick
Advocate II
Advocate II

Expected 'indent' or 'colon' in Collect statement

 

I am trying to add to a collection 'cltHousholds' using the code below but keep receiving either 'expected indent' or 'expected colon' error.  What is the editor complaining about?

Collect( cltHousholds, 
{ 
"id": "D131A", "address": "16 HH Dr", "status": 0
} )

 

1 ACCEPTED SOLUTION

Accepted Solutions
willick
Advocate II
Advocate II

Well the problem was not what I expected but when I removed the quotes from the 'name' elements like so it worked.

 

Collect( cltHousholds, 
{ 
id: "D131A",
address: "16 HH Dr",
status: 0 
}
)

View solution in original post

1 REPLY 1
willick
Advocate II
Advocate II

Well the problem was not what I expected but when I removed the quotes from the 'name' elements like so it worked.

 

Collect( cltHousholds, 
{ 
id: "D131A",
address: "16 HH Dr",
status: 0 
}
)

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,799)