# 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](https://docs.keyfax.biz/integrations/host-systems/activeh-desktop/keyfax-configuration/misexchange.xml "mention") 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 [support](https://docs.keyfax.biz/links/support "mention") for assistance.&#x20;
