# SAP Buildmap rule

**URL:** <https://developer.sailpoint.com/discuss/t/sap-buildmap-rule/8307>\
**Category:** SHF Discussion and Questions\
**Tags:** rules, aggregation\
**Created:** [February 17, 2023, 11:59am UTC](https://developer.sailpoint.com/discuss/t/sap-buildmap-rule/8307 "2023-02-17T11:59:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aakanksha](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@aakanksha](https://developer.sailpoint.com/discuss/u/aakanksha)\
**Post date:** [February 17, 2023, 11:59am UTC](https://developer.sailpoint.com/discuss/t/sap-buildmap-rule/8307/1 "2023-02-17T11:59:01Z")

</div>

Hello,

We have a requirement where we need to skip some accounts from SAP HR source. for this purpose we have added a custom attribute in the extra attributes BAPI - attribute name MAIN\_RECORD. Now we need to aggregate only the accounts with MAIN\_RECORD=Y.  
This cannot be achieved by aggregation filter BAPI as its a custom attribute, could you please help me here .  
I am trying to write a build map rule to achieve this filter of records, not sure how do I skip the records in the code.

---

<div class="post-metadata">

**Author:** ![IAMpdu](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/iampdu/32/2671_2.png) [@IAMpdu](https://developer.sailpoint.com/discuss/u/IAMpdu)\
**Post date:** [July 12, 2023, 7:14pm UTC](https://developer.sailpoint.com/discuss/t/sap-buildmap-rule/8307/2 "2023-07-12T19:14:38Z")

</div>

Hello Akansha,  
Once you have builded the attribute ( MAIN\_RECORD=Y)in build map rule then you can try to use aggregation filter -  
[https://community.sailpoint.com/t5/IdentityNow-Wiki/IdentityNow-Account-Filtering-during-Account-Aggregation/ta-p/142873#:~:text=This%20is%20configured%20by%20setting,sent%20to%20IdentityNow%20as%20normal](https://community.sailpoint.com/t5/IdentityNow-Wiki/IdentityNow-Account-Filtering-during-Account-Aggregation/ta-p/142873#:~:text=This%20is%20configured%20by%20setting,sent%20to%20IdentityNow%20as%20normal).  
write a filter with MAIN\_RECORD=Y. and attach it to the source.

Thanks !!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [September 10, 2023, 7:15pm UTC](https://developer.sailpoint.com/discuss/t/sap-buildmap-rule/8307/3 "2023-09-10T19:15:13Z")

</div>

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