Webservices customization rule issue

Hello Sailors,

if(object != void){
String type = (string) object.getObjectType();

if(type != null && type.equalsIgnoreCase (“group”)){
String userName = object.getAttribute(“service”);

if(userName != null && userName.equalsIgnoreCase(“xyz”))
return object;

}
}

When I plug in the above customization rule to get only some groups out of all groups from a webservices app it is fetching only the requested group

But problem is
When I run account aggregation it is successful but not returning any accounts

When I remove this account aggregation is working file

I want both account aggregation and some entitlements from this custom rule

Where I’m missing any leads will help me

Thanks in advance

Is it Webservice Before Operations or After Operation Rule you are using?

Hello @amulpuru

I believe you are working on resource customization rule and the existing rule is running only for specific account type. Your returned object seems to be inside if condition for group type object and this might be the reason for accounts getting skipped. Please use the below condition -

if ( schema.getObjectType().compareTo(Connector.TYPE_ACCOUNT) == 0){
  //customize and return account object
}else if ( schema.getObjectType().compareTo(Connector.TYPE_GROUP) == 0){
  //customize and return groupobject
}
1 Like