# Tranforms issue

**URL:** <https://developer.sailpoint.com/discuss/t/tranforms-issue/83027>\
**Category:** SHF Discussion and Questions\
**Tags:** transforms, identity-security-cloud\
**Created:** [September 26, 2024, 3:25pm UTC](https://developer.sailpoint.com/discuss/t/tranforms-issue/83027 "2024-09-26T15:25:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soundary](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Soundary](https://developer.sailpoint.com/discuss/u/Soundary)\
**Post date:** [September 26, 2024, 3:25pm UTC](https://developer.sailpoint.com/discuss/t/tranforms-issue/83027/1 "2024-09-26T15:25:38Z")

</div>

Reaching out to all the community for help

```auto
{
                "attributes": {
                    "negativeCondition": "active",
                    "positiveCondition": "inactive",
                    "input": {
                        "attributes": {
                            "name": "market"
                        },
                        "type": "identityAttribute"
                    },
                    "operator": "eq",
                    "value": "ABC"
                },
                "type": "stringCompare"
            },

```

Does the stringcompare attribute work with the transform or that needs to be pre-created before using it in the transforms?

Regrads,  
Soundarya

---

<div class="post-metadata">

**Author:** ![gourab](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/gourab/32/18650_2.png) [@gourab](https://developer.sailpoint.com/discuss/u/gourab)\
**Post date:** [September 26, 2024, 3:33pm UTC](https://developer.sailpoint.com/discuss/t/tranforms-issue/83027/2 "2024-09-26T15:33:54Z")

</div>

Hi @Soundary ,  
I don’t see “stringCompare” type transform in ISC. I have also checked ISC page for transform guide [Operations | SailPoint Developer Community](https://developer.sailpoint.com/docs/extensibility/transforms/operations), I don’t find it there also.  
Instead of this , you can use **static** type of transform to handle this kind of use cases. [Static | SailPoint Developer Community](https://developer.sailpoint.com/docs/extensibility/transforms/operations/static)  
Also I believe conditional transform can be used as it supports eq/ lt / gt: [Conditional | SailPoint Developer Community](https://developer.sailpoint.com/docs/extensibility/transforms/operations/conditional)

---

<div class="post-metadata">

**Author:** ![Soundary](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Soundary](https://developer.sailpoint.com/discuss/u/Soundary)\
**Post date:** [September 27, 2024, 9:39am UTC](https://developer.sailpoint.com/discuss/t/tranforms-issue/83027/3 "2024-09-27T09:39:43Z")

</div>

Great! thank you for the information

{  
“attributes”: {  
“expression”: “$market eq ‘ABC’”,  
“positiveCondition”: {  
“status”: “inactive”,  
“identity”: "Google  
},  
“negativeCondition”: {  
“status”: “active”,  
“identity”: “amazon”  
}  
},  
“type”: “conditional”  
}  
Can i use this condition instead of the above?

---

<div class="post-metadata">

**Author:** ![gourab](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/gourab/32/18650_2.png) [@gourab](https://developer.sailpoint.com/discuss/u/gourab)\
**Post date:** [September 27, 2024, 9:44am UTC](https://developer.sailpoint.com/discuss/t/tranforms-issue/83027/4 "2024-09-27T09:44:21Z")

</div>

> [@Soundary](#):
>
> “expression”: “$market eq ‘ABC’”,

It should work like this “expression”: “$market eq ABC" .  
Please follow the conditional transform documentation for exact format: [Conditional | SailPoint Developer Community](https://developer.sailpoint.com/docs/extensibility/transforms/operations/conditional/)

---

<div class="post-metadata">

**Author:** ![bcariaga](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/bcariaga/32/1890_2.png) [@bcariaga](https://developer.sailpoint.com/discuss/u/bcariaga)\
**Post date:** [September 27, 2024, 1:49pm UTC](https://developer.sailpoint.com/discuss/t/tranforms-issue/83027/5 "2024-09-27T13:49:55Z")

</div>

> [@Soundary](#):
>
> {  
> “attributes”: {  
> “expression”: “$market eq ‘ABC’”,  
> “positiveCondition”: {  
> “status”: “inactive”,  
> “identity”: "Google  
> },  
> “negativeCondition”: {  
> “status”: “active”,  
> “identity”: “amazon”  
> }  
> },  
> “type”: “conditional”  
> }

You will likely need to define the market variable:

```auto
{
    "attributes": {
        "expression": "$market eq 'ABC'",
        "market": {
            "attributes": {
                "name": "market"
            },
            "type": "identityAttribute"
        },
        "positiveCondition": {
            "status": "inactive",
            "identity": "Google"
        },
        "negativeCondition": {
            "status": "active",
            "identity": "amazon"
        }
    },
    "type": "conditional"
}

```

---

<div class="post-metadata">

**Author:** ![Soundary](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Soundary](https://developer.sailpoint.com/discuss/u/Soundary)\
**Post date:** [October 1, 2024, 11:48am UTC](https://developer.sailpoint.com/discuss/t/tranforms-issue/83027/6 "2024-10-01T11:48:21Z")

</div>

{  
“attributes”: {  
“expression”: “$Market eq ‘ABC’”,  
“positiveCondition”: “inactive”,  
“negativeCondition”: “active”,  
“Market”: {  
“attributes”: {  
“name”: “market”  
},  
“type”: “identityAttribute”  
}  
},  
“type”: “conditional”  
},  
Is there any issue with this code? This doesn’t seem to work in SailPoint

---

<div class="post-metadata">

**Author:** ![rohit\_wekhande](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/rohit_wekhande/32/28501_2.png) [@rohit\_wekhande](https://developer.sailpoint.com/discuss/u/rohit_wekhande)\
**Post date:** [October 1, 2024, 11:58am UTC](https://developer.sailpoint.com/discuss/t/tranforms-issue/83027/7 "2024-10-01T11:58:40Z")

</div>

Hello,

There seems to be some issues with your transform syntax, hence, that’s is the reason its not working in SailPoint ISC.

Refer the below sample code.

```auto
{
  "attributes": {
    "expression": "$Market eq ABC",
    "positiveCondition": "true",
    "negativeCondition": "false",
    "Market": {
      "attributes": {
        "name": "market"
      },
      "type": "identityAttribute"
    }
  },
  "type": "conditional",
  "name": "Test Conditional Transform"
}

```

There is also another approach which you can use to achieve the above using static transform.

```auto
{
  "name": "Test Transform",
  "type": "static",
  "attributes": {
    "GetMarketValue": {
      "type": "identityAttribute",
      "attributes": {
        "name": "market"
      }
    },
    "value": "#if($GetMarketValue.equalsIgnoreCase('ABC'))true#{else}false#end"
  }
}

```

Try above and let us know whether it works.

---

<div class="post-metadata">

**Author:** ![Dharani](https://avatars.discourse-cdn.com/v4/letter/d/53a042/32.png) [@Dharani](https://developer.sailpoint.com/discuss/u/Dharani)\
**Post date:** [October 1, 2024, 11:59am UTC](https://developer.sailpoint.com/discuss/t/tranforms-issue/83027/8 "2024-10-01T11:59:49Z")

</div>

Hi @Soundary

Can you please share your transform by masking the customer details.  
Or else I can see in transform there is comma in the end can you please try by removing the comma. Please check below screenshot.

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/b/9/b917e0bce1cf50e604ab619c5e1d8aaf83581a1c.png)

Thank you.

---

<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:** [November 30, 2024, 12:00pm UTC](https://developer.sailpoint.com/discuss/t/tranforms-issue/83027/9 "2024-11-30T12:00:23Z")

</div>

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