cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
willick
Level: Powered On

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
Level: Powered On

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
willick
Level: Powered On

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,944)