> For the complete documentation index, see [llms.txt](https://docs.keyfax.biz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keyfax.biz/integrations/host-systems/activeh-desktop/keyfax-configuration/retrieving-block-codes.md).

# Retrieving Block Codes

If it is a requirement to make the Block\_Code available in Keyfax, you will need to have the following entry in your [MISExchange.xml](/integrations/host-systems/activeh-desktop/keyfax-configuration/misexchange.xml.md) file to get the Block asset ID for a Child Asset.

```
SELECT DBO.fn_Get_Block_For_ChildAsset('[Value]')
```

Where `[Value]` is the `AssetId` (child asset reference)\
&#x20;\
If the child asset is not linked to a Block up the structure a Null will be returned.\
\
Please [Contact Us](/links/support.md) for assistance.&#x20;
