Rule with two attributes to return

Hi everyone,

I’m encountering an issue with a custom IdentityAttribute rule that maps a location code to the corresponding country and city. Is there a way to include a condition in the rule to return the correct attribute based on what I need to map, or do I have to duplicate the rule for each attribute?
Thanks

Hi Luana and Welcome,

Can you share your code please?

You can have a single rule to return two different information. the thing is ta ISC does not show multi value attributes. so you need two different attributes.

Hi, I don’t have written the code yet

ok thanks. How can I return two different attributes in the same rule?

To be clear, you want to write to two different identity.attributes?

If that is the case, then you will need to apply the rule to each attribute

yes, that’s the case, thank you!

Create one rule that returns a string in this format:
firstValueAUNIQUESEPARATORsecondValue
Use the same rule as an input to a split transform for both identity attributes and use first or second values as required

“AUNIQUESEPARATOR” should be a string that will never appear in firstValue or secondValue. You can use something like “XXXXXXXXXXXXXX”

1 Like

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