Get a list of special pages landing.syspage.get

We are still updating this page

Some data may be missing here — we will fill it in shortly.

Scope: landing

Who can execute the method: any user

The method landing.syspage.get returns a list of site pages that are set as special.

Examples

try
        {
        	const response = await $b24.callMethod(
        		'landing.syspage.get',
        		{
        			id: 1390,// Site ID
        			active: true// If true, only active site pages will be returned (default is all)
        		}
        	);
        	
        	const result = response.getData().result;
        	console.info(result);
        }
        catch(error)
        {
        	console.error(error);
        }
        
try {
            $response = $b24Service
                ->core
                ->call(
                    'landing.syspage.get',
                    [
                        'id'     => 1390, // Site ID
                        'active' => true, // If true, only active site pages will be returned (default is all)
                    ]
                );
        
            $result = $response
                ->getResponseData()
                ->getResult();
        
            echo 'Success: ' . print_r($result, true);
            // Your required data processing logic
            processData($result);
        
        } catch (Throwable $e) {
            error_log($e->getMessage());
            echo 'Error getting syspage: ' . $e->getMessage();
        }
        
BX24.callMethod(
            'landing.syspage.get',
            {
                id: 1390,// Site ID
                active: true// If true, only active site pages will be returned (default is all)
            },
            function(result)
            {
                if(result.error())
                {
                    console.error(result.error());
                }
                else
                {
                    console.info(result.data());
                }
            }
        );
        

How to Use Examples in Documentation