Transform that is referring another AD attribute

Hi All,

I am writing the transform rule for setting ad attribute which is replacing text from another newly created ad attribute. I have tested the transform but it doesn’t work as expected.

Logic: I am having a cloud rule that generate unique email in the AD source and I want to get the mailNickname by replacing every text starting from @ in the mail attribute.

Please share some thoughts to address this issue. Thank you so much!

Here is my transform:

{
            "name": "mailNickname",
                "transform": {
					"attributes": {
						"input": {
							"attributes": {
								"value": "$mail"
							},
							"type": "static"
						},
						"regex": "(?=@).*",
						"replacement": ""
					},
					"type": "replace"
				},
            "attributes": {},
            "isRequired": false,
            "type": "string",
            "isMultiValued": false
}
1 Like

In account create profile of your source, can you check if mail is calculate before mailNickname ?

1 Like

Hi @Iris,

Are you able to call cloud rule? Without replace

Best Regards,
Siva.K

Thank you for your reply. I have checked the account create profile of my AD sources, mail is having a higher priority than the mailNickname.

@iris_deloitte can you try this as regex : “regex”: “@.*”

{
            "name": "mailNickname",
                "transform": {
					"attributes": {
						"input": {
							"attributes": {
								"value": "$mail"
							},
							"type": "static"
						},
						"regex": "@.*",
						"replacement": ""
					},
					"type": "replace"
				},
            "attributes": {},
            "isRequired": false,
            "type": "string",
            "isMultiValued": false
}
1 Like