RaiseNow creates temporary objects to track the status of record change propagation from Salesforce to RaiseNow.
Using the Salesforce developer console, you can check if there are any pending operations. This is important in the context of upgrades of our managed package. An upgrade should not be executed if asynchronous operations are still pending.
List<AggregateResult> aggregateResultList = [ SELECT count(Id) FROM RaiseNow__Async_Operations__c WHERE RaiseNow__Status__c = 'New' AND RaiseNow__Class_Name__c = 'RaiseNow.RecurringDonationPropertyChangeJob' ]; if (aggregateResultList[0].get('expr0') == 0) { System.debug('You have ' + aggregateResultList[0].get('expr0') + ', You can continue ugrading the package'); } else { System.debug('You have ' + aggregateResultList[0].get('expr0') + ', Please wait until they are no new jobs before you upgrade'); }
You should see this message in the result.
Comments
0 comments
Please sign in to leave a comment.