Field Key with a number

Hi, I need the help of the experts. I try to get a reference, but I have a problem whose the Field Key with a number, Any suggestions

Maybe try

result['SubCategory-2']

@yisrael-wix Nope :frowning:

@avigados Hmm, that’s sort of “standard” Javascript. It’s probably better to have field names without special characters. In fact, I didn’t even know it was possible.

As a matter of fact, it isn’t permitted:

@yisrael-wix ok but this get the automatic, never mind i restore the first Field but some things cannot delete

@yisrael-wix i think its a bug

@avigados Yeah - it does look weird.

I’m going to send this on to QA so they can evaluate.

You could try adding a new field called SubCategories and then adding the refs that you want. Use that field in a few connections or queries to see if it works OK. If it works, you can then use that new field in all of the connections and queries. And then when you’re satisfied that things are working OK, you can delete the original SubCategoris field just to clean up.

I realize that it’s only a workaround, but that’s the only thing I can think of right now.

Also, make sure that all your code is matching too.

Function getAllSubCategoris (categoryId) {

Let allSubCategories = result.SubCatgory-2;

You are missing the ‘e’ from the categories in the first line.