You need to sign in to do that
Don't have an account?
anna 5
Wrong value is set to List<id>
hallo.
I'm trying to this trailhead.
■Use Future Methods
https://trailhead.salesforce.com/ja/modules/asynchronous_apex/units/async_apex_future_methods
I wrote berow code for test class,
but the 'AccountProcessor' class did not achieve 100% code coverage via your test methods.
It seemed that 'aid' contains the Account record itself, not it's id
How can I set Account.id to List<id>?
Thak you.
I'm trying to this trailhead.
■Use Future Methods
https://trailhead.salesforce.com/ja/modules/asynchronous_apex/units/async_apex_future_methods
I wrote berow code for test class,
but the 'AccountProcessor' class did not achieve 100% code coverage via your test methods.
@isTest public class AccountProcessorTest { @isTest public static void AccountProcessorTest(){ List<Account> accounts = [Select Id, Name from Account]; List<Id> ids = new List<Id>(); for(account a : accounts){ ids.add(a.Id); } Test.startTest(); AccountProcessor.countContacts(ids); Test.stopTest(); } }So I tried to debug with checkpoint,
It seemed that 'aid' contains the Account record itself, not it's id
How can I set Account.id to List<id>?
Thak you.
Sorry for this issue you are encountering.
May I suggest you please check with below link from the forums community with a similar discussion and a suggested workaround which might help you further with the above requirement.
- https://developer.salesforce.com/forums/?id=906F0000000D8hwIAC
Hope this helps.Thanks,
Nagendra
All Answers
Sorry for this issue you are encountering.
May I suggest you please check with below link from the forums community with a similar discussion and a suggested workaround which might help you further with the above requirement.
- https://developer.salesforce.com/forums/?id=906F0000000D8hwIAC
Hope this helps.Thanks,
Nagendra
In that way I cleared challenge. Thanks!