pkumar22
(prasantha Kondakagari)
June 18, 2024, 10:36pm
1
Hi
Getting the below error. Any idea?
{
"id": "4ea6b8b0-5e5f-4900-8e45-49abc40afac9",
"name": "WDIdentityOwner",
"type": "static",
"attributes": {
"lcs": {
"attributes": {
"input": {
"attributes": {
"input": {
"attributes": {
"name": "cloudLifecycleState"
},
"type": "identityAttribute"
}
}
}
},
"type": "upper"
},
"userType": {
"type": "upper",
"attributes": {
"input": {
"type": "substring",
"attributes": {
"input": {
"type": "accountAttribute",
"attributes": {
"attributeName": "u_non_employee_id",
"sourceName": "NERM"
}
},
"begin": 0,
"end": 4
}
}
}
},
"value": "#if($lcs != 'NONE' && $userType == 'NEMP')SNOW#{else}Workday#end"
},
"internal": false
}
Hi @pkumar22 ,
can you try this :
{
"id": "4ea6b8b0-5e5f-4900-8e45-49abc40afac9",
"name": "SLHS WDIdentityOwner",
"type": "static",
"attributes": {
"lcs": {
"type": "upper",
"attributes": {
"input": {
"type": "identityAttribute",
"attributes": {
"name": "cloudLifecycleState"
}
}
}
},
"userType": {
"type": "upper",
"attributes": {
"input": {
"type": "substring",
"attributes": {
"input": {
"type": "accountAttribute",
"attributes": {
"attributeName": "u_non_employee_id",
"sourceName": "NERM"
}
},
"begin": 0,
"end": 4
}
}
}
},
"value": "#if($lcs != 'NONE' && $userType == 'NEMP')SNOW#{else}Workday#end"
},
"internal": false
}
i update lcs variable section.
2 Likes
pkumar22
(prasantha Kondakagari)
June 18, 2024, 11:06pm
3
Tried above give transform but not working
As you are using an account attribute input for substring, wrap it with firstValid as below:
{
"id": "2b867e9e-490f-40c3-ba00-672d4bc5d438",
"name": "SLHS - Test Authsource",
"type": "static",
"attributes": {
"lcs": {
"type": "upper",
"attributes": {
"input": {
"attributes": {
"name": "cloudLifecycleState"
},
"type": "identityAttribute"
}
}
},
"userType": {
"type": "upper",
"attributes": {
"input": {
"type": "substring",
"attributes": {
"input": {
"type": "firstValid",
"attributes": {
"values": [
{
"type": "accountAttribute",
"attributes": {
"attributeName": "u_non_employee_id",
"sourceName": "NERM"
}
},
"NOTNEMP"
],
"ignoreErrors": true
}
},
"end": 4,
"begin": 0
}
}
}
},
"value": "#if($lcs != 'NONE' && $userType == 'NEMP')SNOW#{else}Workday#end"
},
"internal": false
}
Are you expecting null
for LCS? Then you should use firstValid there as well
1 Like
Hi @pkumar22 ,
Don’t use identity attribute in transform instead use account attribute or reference transform .It might solve your issue.Here for LCS use the reference transform which will refer the transform being used for LSC.
Thanks!!
1 Like
system
(system)
Closed
August 18, 2024, 12:51am
6
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.