GetBlock(BlockName)

Returns a pointer to the specified block object that exists within the container.

Parameters

BlockName. Specifies the name of the block to return. This parameter accepts a string value.

Examples

MyCustomContainer = CRM.GetBlock("MyCustomContainer");
R = CRM.FindRecord('Company','Comp_CompanyId=30');
MyE = MyCustomContainer.GetBlock("CompanyBoxShort");
CRM.AddContent(MyE.Execute(R));
Response.Write(CRM.GetPage());

Displays the CompanyBoxShort block in the MyCustomContainer container block. This container block has been set up in the <My Profile> | Administration | Customization | Company | Blocks area of Sage CRM.