New answers tagged

4

In unit tests, you generally make assertions on the output and the result of running a piece of code. Given the name of the thing you're testing (Chatlog.deleteLog()), I'd assume there is a chat log you should be deleting. You want to assert that the intended log is actually deleted (done by querying before and after running the target piece of code) if ...


1

You're allowed 250k future calls per day (combined with other things such as QUeueable, Batchable, and Schedulable calls); you should probably be okay. However, one thing you should do is batch the calls into groups of 100 for performance reasons. List<List<Id>> batches = new List<List<Id>>(); List<Id> temp; batches.add(temp = ...


1

The picklist remains inactive since you have assigned (value.isActive = true) for the picklist, I recommend to use the below piece of code to make the picklist active. value.isActive = null; If you want to know the reason behind the assigning as null, use tooling API and hit the custom field URL with your field id as below and maybe you can use the ...


Top 50 recent answers are included