How to make Bitrix to filter by property with an underline?

Function GetList according to the documentation takes
arFilter = array(
"(modif)prop" => val/null/false
"(modif)prop" => val/null/false
);

if the filter is multiple then
arFilter = array(
"logic" => "or",
array(
"(modif)prop" => val/null/false
"(modif)prop" => val/null/false
),
array(
"(modif)prop" => val/null/false
"(modif)prop" => val/null/false
),
);

It works, but the question remains - how to filter by properties in the code which have an underscore?

PROPERTY_PRODUCT_CODE_VALUE == not working because Bitrix thinks that you want to filter on CODE field of the PRODUCT property and not the VALUE field of the properties PRODUCT_CODE.
August 23rd 19 at 10:57
1 answer
August 23rd 19 at 10:59
The easiest option is to use a digital ID properties. PROPERTY_9_VALUE.
Not very nice but should work. To not have in which case the entire site to replace the ID properties to another value you can use constants.
The decision is good, do not like ID because when you migrate from one system to another they change. ID this kind of thing, belonging to a certain custodian of the data, and because writing the code is one time only. - Ayla_Eichmann34 commented on August 23rd 19 at 11:02
For example on the same Bitrix don't have any tables to link ID from different systems, and it is not only about Bitrix is an idea as if bordered by "working from nothing", but alias-s or property codes, this is about the fact that when you transfer to another site will work.

But that would harm the business 1C. Because it would be possible to download new and free Bitrix and tie the old code. - Ayla_Eichmann34 commented on August 23rd 19 at 11:05

Find more questions by tags 1C-BitrixPHP