cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Advocate II
Advocate II

Re: Expected 'indent' or 'colon' in Collect statement

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
Highlighted
Advocate II
Advocate II

Re: Expected 'indent' or 'colon' in Collect statement

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,983)