Hi Krishna! Yes, I configured status after first aggregation. I cleared accounts and performed aggregation without optimization, but all accounts still remain enabled.
modify attribute name to STATUSBIS (for confirming if there was something with name), to status (lowercase) and re creating a whole new source, but in all cases status=Inativo does not brings account to disabled status.
We could make it work, but I do not feel confortable with solucion.
What we made is to add a new attribute named IIQDisabled, we force it to come with true value for that “Inativo” value. Then we configured the enabled account:
I have created a bunch of web services, this IIQ Disabled is required in JDBC, but for Web Services, you dont need, this should work with Account Enable Status Attribute.
It appears that when modifying response in the after operations rule, the status mapping loses.
Solution is to add the iiqdisabled attribute to the mapping:
Map updatedMapInfo = new HashMap(); // modified web service respone
List finallist = new ArrayList(); // array of new accounts
....
Map newmap = HashMap(); // final account
...........
String IIQDisabled = "true";
if(JsonUtil.get(jsonNode, "status").equals("Active")) // transforms an status with value Active to the iiqDisabled = false
IIQDisabled = "false";
finallist.add(newmap);
.....
updatedMapInfo.put("data", finallist);
return updatedMapInfo; // return new array of accounts to source
also, I have to put iiqDisabled attribute on source schema:
hi @jsosa, does this behaviour happen when the after operation rule is attached to account aggregation operations only or to other operations as well.
When the Account is disabled using Disable Account Operation does the account show as disabled immediately for you or do you have to run a single or full account aggregation to see the status updated as Disabled
Hi Uday, only in account aggregation, and apparently only when I modify the original response. I have a rule that prints all request/response information to log that I use in almost all operations, and it does no affects the account status.