# Filter based on company.file\_code

**URL:** <https://community.silverfin.com/t/filter-based-on-company-file-code/1400>\
**Category:** Insights\
**Created:** [February 21, 2019, 2:57pm UTC](https://community.silverfin.com/t/filter-based-on-company-file-code/1400 "2019-02-21T14:57:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![b.dalle](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/b.dalle/32/2305_2.png) [@b.dalle](https://community.silverfin.com/u/b.dalle)\
**Post date:** [February 21, 2019, 2:57pm UTC](https://community.silverfin.com/t/filter-based-on-company-file-code/1400/1 "2019-02-21T14:57:34Z")

</div>

Hi,

When creating a trigger, we would want to create a filter based on the company.file\_code. Is this possible in some kind of way? For the moment I can’t seem to find a way to do this.

Kind Regards

---

<div class="post-metadata">

**Author:** ![b.dalle](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/b.dalle/32/2305_2.png) [@b.dalle](https://community.silverfin.com/u/b.dalle)\
**Post date:** [April 1, 2019, 8:46am UTC](https://community.silverfin.com/t/filter-based-on-company-file-code/1400/2 "2019-04-01T08:46:16Z")

</div>

Any update regarding this topic?

@sven

@SamVanEenoo

---

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [April 1, 2019, 8:51am UTC](https://community.silverfin.com/t/filter-based-on-company-file-code/1400/3 "2019-04-01T08:51:46Z")

</div>

Good morning @b.dalle,

The only way for now to get this to work, is to have this value

> company.file\_code

taken into a result tag. Because in Insights for now, you can search for those. Perhaps you have a custom reconciliation template you can use for that? Because it’s enough that this is done in the background.  
How to create a result-tag, is found here:

> [@CASE reference values across templates by using result tags](https://community.silverfin.com/t/case-reference-values-across-templates-by-using-result-tags/1157):
>
> If you want to reference a certain value or variable from recon template A in another template, there’s a way to do it with the so-called result tags in STL. They work like this (bulb just type in result and press TAB to get this preformatted code bulb): {% result 'name' content %} where the name is a shortname you can choose, and the content is the value or variable you want to reference to. Let’s say we have this variable done\_prepayments in our recon template Prepayments (which is al…

Hope this helps you?

---

<div class="post-metadata">

**Author:** ![b.dalle](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/b.dalle/32/2305_2.png) [@b.dalle](https://community.silverfin.com/u/b.dalle)\
**Post date:** [April 2, 2019, 7:19am UTC](https://community.silverfin.com/t/filter-based-on-company-file-code/1400/4 "2019-04-02T07:19:18Z")

</div>

Thank you @sven

This works like a charm. However, before i can use a filter based on this, I will need to make sure the template with this custom code has been added to each client in order to get the total picture right? Or is there a way to implement a custom code in a Silverfin Template (which I know is used in every client - f.e. “eigen vermogen”)?

---

<div class="post-metadata">

**Author:** ![borjaGonzalez](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/borjagonzalez/32/825_2.png) [@borjaGonzalez](https://community.silverfin.com/u/borjaGonzalez)\
**Post date:** [April 2, 2019, 3:00pm UTC](https://community.silverfin.com/t/filter-based-on-company-file-code/1400/5 "2019-04-02T15:00:12Z")

</div>

Hi @b.dalle,

I think the best thing to do would be writing the result tag in a template that you know is currently being used by all clients. If all your clients are using a specific workflow you can check which templates are added by default on _Templates \> Workflows \> workflow\_name \> Auto-added Reconciliations_:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/5141fbea3fc8383d3b8b6c768441c09f1a3ea3d2.png)

Hope that helps,

Best  
Borja

---

<div class="post-metadata">

**Author:** ![b.dalle](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/b.dalle/32/2305_2.png) [@b.dalle](https://community.silverfin.com/u/b.dalle)\
**Post date:** [April 3, 2019, 6:04am UTC](https://community.silverfin.com/t/filter-based-on-company-file-code/1400/6 "2019-04-03T06:04:05Z")

</div>

That was indeed what I was thinking, however for now we don’t have custom templates added by default.

Thank you for the information!

Kind regards,  
Brendan
