Hi developers,
Currently we are working on combining columns into single row. we have used many methods to combine the column values into single row but none of them have worked.
Now this is the rule that we’re working on, But it also throws up some parse error.
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE Rule PUBLIC "sailpoint.dtd" "sailpoint.dtd">
<Rule created="1726819185936" id="c0a8006c920e102481920e71b5100210" language="beanshell" modified="1726821579414" name="bundle-com" type="RequestObjectSelector">
<Source>
import sailpoint.api.SailPointContext;
import sailpoint.object.Identity;
import sailpoint.object.Bundle;
import java.util.List;
import java.util.stream.Collectors;
Identity identity = context.getObjectByName(Identity.class, "PRISM ADMIN");
// Get all bundles for this identity
List bundles = identity.getBundles();
// Combine bundle names into a comma-separated string
if (bundles != null) {
// Fetch and join bundle names
String combinedBundles = bundles.stream()
.map(Bundle::getName) // Get the name of the bundle
.collect(Collectors.joining(", "));
// Return the combined bundle names
return combinedBundles;
}
</Source>
</Rule>
For ex, Shown in the below attached picture, We need the entitlements columns to be combined in a single row for the prism admin user.