# Define Variable Operator in Workflow

**URL:** <https://developer.sailpoint.com/discuss/t/define-variable-operator-in-workflow/10627>\
**Category:** SHF Discussion and Questions\
**Tags:** workflows, identity-security-cloud\
**Created:** [April 27, 2023, 4:00pm UTC](https://developer.sailpoint.com/discuss/t/define-variable-operator-in-workflow/10627 "2023-04-27T16:00:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndanjou](https://avatars.discourse-cdn.com/v4/letter/n/df705f/32.png) [@ndanjou](https://developer.sailpoint.com/discuss/u/ndanjou)\
**Post date:** [April 27, 2023, 4:00pm UTC](https://developer.sailpoint.com/discuss/t/define-variable-operator-in-workflow/10627/1 "2023-04-27T16:00:25Z")

</div>

Has anyone experimented with the new Define Variable operator in workflow? i’m not sure of its intended use case. I’m look to parse through an object returned from “get accounts” and pull out the source name only into a variable. is that something this is capable of doing in it’s current state?

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [April 27, 2023, 4:46pm UTC](https://developer.sailpoint.com/discuss/t/define-variable-operator-in-workflow/10627/2 "2023-04-27T16:46:10Z")

</div>

Hey Nicholas,

Good catch! This feature was inadvertently rolled out prematurely. Please ignore for the time being.

---

<div class="post-metadata">

**Author:** ![ndanjou](https://avatars.discourse-cdn.com/v4/letter/n/df705f/32.png) [@ndanjou](https://developer.sailpoint.com/discuss/u/ndanjou)\
**Post date:** [April 27, 2023, 6:15pm UTC](https://developer.sailpoint.com/discuss/t/define-variable-operator-in-workflow/10627/3 "2023-04-27T18:15:49Z")

</div>

Thanks Jordan Will do, excited for the feature when ready.

---

<div class="post-metadata">

**Author:** ![chandramohan27](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@chandramohan27](https://developer.sailpoint.com/discuss/u/chandramohan27)\
**Post date:** [July 5, 2023, 5:04pm UTC](https://developer.sailpoint.com/discuss/t/define-variable-operator-in-workflow/10627/4 "2023-07-05T17:04:10Z")

</div>

Hi @colin_mckibben

Is this “Define Varaible” Operator ready to use?

I’m trying to add 10 days to the existing deadline through workflow.

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [July 5, 2023, 7:29pm UTC](https://developer.sailpoint.com/discuss/t/define-variable-operator-in-workflow/10627/5 "2023-07-05T19:29:27Z")

</div>

It is still in beta, but you can use it now.

To add 10 days to a date, you can configure it as follows.

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/0/0ad757f31c45f598eedd191547b7c0c5d0acb48d.png)

Your new variable will appear in the variable selector for use in subsequent actions.

---

<div class="post-metadata">

**Author:** ![chandramohan27](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@chandramohan27](https://developer.sailpoint.com/discuss/u/chandramohan27)\
**Post date:** [July 6, 2023, 7:25am UTC](https://developer.sailpoint.com/discuss/t/define-variable-operator-in-workflow/10627/6 "2023-07-06T07:25:55Z")

</div>

@colin_mckibben

Hi,

I tried Define variable operator to concat my firstname and lastname and tried to use the custom variable in my subsequent action “send email”. When I click open variable selector on send email, I’m receiving an error (attached). when I clicked ok and moved on to select attributes from “Define Variable” I’m not able see any attributes populated.

Here is the screenprints.

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/3/302443b16346fab8040d54f2edae6e49c7ac18be.png)  
 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/2/2cf663412d18aaa1403f9d6452e0c9206fa3fdb4.png)  
 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/2/2f8f559d77fad6189382e2c00f1eebc8501e8493.png)  
 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/0/0c5b1c87826c6dc736d09ae056b8633946ec6172.png)  
 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/9/99e48408abefd22ff11c1d5490897c09fca82f27.png)

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [July 6, 2023, 1:16pm UTC](https://developer.sailpoint.com/discuss/t/define-variable-operator-in-workflow/10627/7 "2023-07-06T13:16:03Z")

</div>

@chandramohan27 Try the following.

- Delete the Send Email action and drag a new one onto the canvas. It’s possible you have an old version of send email that doesn’t work with define variable.
- If that doesn’t work, please submit a support ticket to check if that feature flag is enabled in your tenant.

---

<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:** [September 4, 2023, 1:16pm UTC](https://developer.sailpoint.com/discuss/t/define-variable-operator-in-workflow/10627/8 "2023-09-04T13:16:15Z")

</div>

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