Answer the question
In order to leave comments, you need to log in
How to get list items in Bitrix24 process?
Greetings!
There is Bitrix24 - a boxed version.
Elements of the Universal List have been added to the deal.
I want to pull out ALL elements of the list from the business process in the Deal. Because it's a box, i can use php embedded in process.
But for this you need to understand the Bitrix Framework.
The question is - how to pull out the elements of the CA in the current transaction with such a code?
Answer the question
In order to leave comments, you need to log in
Hello.
Here is a description of the structure and an example of a request - https://dev.1c-bitrix.ru/api_help/iblock/classes/c...
CModule::IncludeModule("iblock");
$arSelect = Array("ID");
$arFilter = Array("IBLOCK_ID"=>17, "PROPERTY_STATUS_VALUE"=>"Value in field", "PROPERTY_SDELKA"=>{=A15715_81460_66183_98076:Value}); //{=A15715_81460_66183_98076:Value} is the value from the Iterator, ID of the deal to which the list elements are attached
$res = CIBlockElement::GetList(Array(), $arFilter, false, Array("nPageSize"=>100), $ arSelect); //Array("nPageSize"=>100) - returns up to 100 elements
while($ob = $res->GetNextElement())
{
$arFields = $ob->GetFields();
$arrId[] = $arFields[ID];
}
$this->SetVariable('idrowlists', $arrId); //write to the idrowlists variable all IDs of the elements of the universal list
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question