# Lifecyclestate transform

**URL:** <https://developer.sailpoint.com/discuss/t/lifecyclestate-transform/16067>\
**Category:** SHF Discussion and Questions\
**Tags:** transforms, identity-security-cloud\
**Created:** [August 13, 2023, 6:49pm UTC](https://developer.sailpoint.com/discuss/t/lifecyclestate-transform/16067 "2023-08-13T18:49:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sindhu\_v\_murthy](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@sindhu\_v\_murthy](https://developer.sailpoint.com/discuss/u/sindhu_v_murthy)\
**Post date:** [August 13, 2023, 6:49pm UTC](https://developer.sailpoint.com/discuss/t/lifecyclestate-transform/16067/1 "2023-08-13T18:49:04Z")

</div>

Hi Team,

I am supposed to set the “inactivestatusdate” value as the date when the user’s lifecyclestate is changed to inactive. I cannot use “now” as whenever this attribute gets refreshed on daily basic the value might change.  
Can someone please help me on this?Is there any way i can achieve this via transform?

---

<div class="post-metadata">

**Author:** ![rajeshs](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@rajeshs](https://developer.sailpoint.com/discuss/u/rajeshs)\
**Post date:** [August 13, 2023, 7:29pm UTC](https://developer.sailpoint.com/discuss/t/lifecyclestate-transform/16067/2 "2023-08-13T19:29:49Z")

</div>

Hi @sindhu_v_murthy

You can add a condition to check if “inactivestatusdate” attribute is null or not. Only if it is null and LCS is inactive you will set the current date(now)

---

<div class="post-metadata">

**Author:** ![sindhu\_v\_murthy](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@sindhu\_v\_murthy](https://developer.sailpoint.com/discuss/u/sindhu_v_murthy)\
**Post date:** [August 14, 2023, 11:59am UTC](https://developer.sailpoint.com/discuss/t/lifecyclestate-transform/16067/3 "2023-08-14T11:59:18Z")

</div>

Thanks a ton! this helped 🥳

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [October 13, 2023, 12:00pm UTC](https://developer.sailpoint.com/discuss/t/lifecyclestate-transform/16067/4 "2023-10-13T12:00:10Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
