# Rollforward nil date : Not working

**URL:** https://community.silverfin.com/t/rollforward-nil-date-not-working/2288
**Category:** Templates
**Tags:** templates, rollforward
**Created:** [May 9, 2022, 2:56pm UTC](https://community.silverfin.com/t/rollforward-nil-date-not-working/2288 "2022-05-09T14:56:57Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Nikhil](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@Nikhil](https://community.silverfin.com/u/Nikhil)
#### Post date: [May 9, 2022, 2:56pm UTC](https://community.silverfin.com/t/rollforward-nil-date-not-working/2288/1 "2022-05-09T14:56:57Z")

</div>

Hi Everyone,

I am trying to clear the date values when roll forwarding to next period and its not working, still dates are being copied to next period.

Code tried:

1. 

{% input company.custom.process.CMT\_filed as:date %}  
{% rollforward nil company.custom.process.CMT\_filed as:date %}

1. 

{% input company.custom.process.CMT\_filed as:date %}  
{% rollforward nil company.custom.process.CMT\_filed %}

Could you help me to clear the date value while roll forwarding to next year, please?

Thanks in advance!

Kind regards,  
Nikhil

---

<div class="post-metadata">

### Author: ![Michiel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/michiel/32/2364_2.png) [@Michiel](https://community.silverfin.com/u/Michiel)
#### Post date: [May 9, 2022, 3:29pm UTC](https://community.silverfin.com/t/rollforward-nil-date-not-working/2288/2 "2022-05-09T15:29:38Z")

</div>

Hi @Nikhil ,

The custom variables you have created are on the company drop. This means that the value of these input fields will remain the same throughout all periods. If you’ld like to clear these fields, attaching it to the company drop is not the right approach.

More information on company and period drops can be found in [this case](https://community.silverfin.com/t/case-what-are-custom-objects/252).

Kind regards,

Michiel

---

<div class="post-metadata">

### Author: ![Nikhil](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@Nikhil](https://community.silverfin.com/u/Nikhil)
#### Post date: [May 29, 2022, 11:17pm UTC](https://community.silverfin.com/t/rollforward-nil-date-not-working/2288/3 "2022-05-29T23:17:23Z")

</div>

Hi @Michiel,

Is there a way, to use **company.custom** for some fields and also those fields can be made **nil** when roll forward?

We are using **company.custom.** in the liquid code to check the updates in the data fields and trigger the webhook events. Perhaps when we don’t use **company.custom** , we don’t see any webhook events for those fields.

Please let me know if need more info.

Kind regards,  
Nikhil

---

<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: [May 30, 2022, 9:07am UTC](https://community.silverfin.com/t/rollforward-nil-date-not-working/2288/4 "2022-05-30T09:07:52Z")

</div>

Hi @Nikhil,

Variables created at company level are not period dependent (i.e. they keep the same value regardless of the period you are in). For this reason, the `rollforward` functionality does not work for them.

Is there a reason why you need to use a company variable?

Best,  
Borja

---

<div class="post-metadata">

### Author: ![Nikhil](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@Nikhil](https://community.silverfin.com/u/Nikhil)
#### Post date: [October 13, 2022, 10:45am UTC](https://community.silverfin.com/t/rollforward-nil-date-not-working/2288/5 "2022-10-13T10:45:04Z")

</div>

Hi @borjaGonzalez,

Apologies, i forgot to reply to your comments.

We have integrated Silverfin to the different applications and we are using Webhooks to trigger the events. Sense, whenever some custom data fields are updated in the Silverfin work papers, API is triggered to take  
those updated data and will do necessary action on our other applications.

Silverfin only has webhooks for when a company custom property is updated on a company. i.e  
{% input company.custom.namespace.key %}

Not for custom properties like.  
{% input custom.namespace.key %}

So we are using Company custom properties, however we cannot make the fields nil when we roll forward to next year. This indeed triggers the API for next year data fields, when rolled forward, even when the user does not update the fields.

Is there a way to make these fields as period dependent and nil when rolled forward for the company custom properties fields?

Kind regards,  
Nikhil

---

<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: [October 14, 2022, 8:52am UTC](https://community.silverfin.com/t/rollforward-nil-date-not-working/2288/6 "2022-10-14T08:52:39Z")

</div>

@Nikhil Unfortunately company variables cannot be period-dependent, they always keep the same value as that’s how they are meant to work.

You can try using a variable like:

```auto
{% input period.custom.namespace.key %}

```

Otherwise, I am afraid this issue would need to be fixed on the Webhooks API side to make those fields compatible.

Best,  
Borja
