-1

We are about to perform Load Testing and we are performing some complex scenarios. We use a CPQ tool that has many custom object records being involved and inserted. Is there an easy way to get somehow all the IDs along with their sObjectType created by the user running the test today? We need to get those IDs and delete them from the database in order to repeat scenarios.

2

1 Answer 1

0

Used the code based on a similar question: How to get list of all sobject records modified today in the system? but with some minor changes on the ignoreList list.

ignoreList.add('feedattachment');
ignoreList.add('pushtopic');
ignoreList.add('apextestqueueitem');
ignoreList.add('objectpermissions');
ignoreList.add('fieldpermissions');
ignoreList.add('conversationentry');
ignoreList.add('permissionset');
ignoreList.add('oauthcustomscope');
ignoreList.add('entitlementtemplate');
ignoreList.add('milestonetype');
ignoreList.add('permissionsetassignment');
ignoreList.add('permissionsettabsetting');
ignoreList.add('forecastinguserpreference');
ignoreList.add('permissionsetgroup');
ignoreList.add('emailrelay');
ignoreList.add('mutingpermissionset');
ignoreList.add('oauthcustomscopeapp'); 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.