Why isn’t a SOQL query of mine populating a list in an Apex test class?
Why does my taskOpp query below not return any records when I run this test? The query works fine in Workbench and my taskRT query works fine in both my code and in Workbench.
Why does my taskOpp query below not return any records when I run this test? The query works fine in Workbench and my taskRT query works fine in both my code and in Workbench.
So I have a trigger and a schedule class. The trigger will fire upon update on an object and schedule a job which will execute the scheduled class. There is some logic in the trigger related to non-working hours, weekends and holidays. It will usually schedule the job 1 hour after insert (due to business requirement). but if insert happens over the weekend, afterhours, or holidays. It will schedule the next business day 8am.
This is my first post here on the StackExchange and hoping someone can help. I have been tasked with finding a way to prevent users from moving to 70% or greater probability in an opportunity when Opportunity Products with a certain record type exist. We have valid SAP products and what we call Prospect Products (these shouldn’t be allowed in opportunity with 70% or greater probability). We are also thinking of adding a field to the product table for prospect products that are “allowed” so those would obviously need to be excluded from the criteria and can be allowed in the forecast.
We have a pretty complex trigger suite on our org. We’ve built a lot of custom functionality. I’m starting to worry about governor limits and not really understanding how to manage them. I’ve read through http://wiki.developerforce.com/page/Apex_Code_Best_Practices and I’ve made all my triggers accordingly, using as few SOQL and DML statements as possible, querying the database only when I have to and getting all the records I need at once, etc.
we have a scenario where User role is changes we have to update Account field then Account’s trigger will update 5 related objects so their triggers also fire 🙂 . Earlier we have used process builder at Account level but we are hitting CPU limit so we are switching to Asynchronous (via trigger) .
The question: … or at least pass in a specific class? Here is what I have right now: private static invoice_response GetResponse(String jsonResponse) { invoice_response deserialized = (invoice_response) JSON.deserialize(jsonResponse, invoice_response.class); return deserialized; } Since I have to deserialized a bunch of things… I’d like to have the following with Generics or perhaps another way: private … Read more
I have Object Alpha and Object Num with fields A,B,C and 1,2,3 respectively.
I have to write trigger on both objects
I am creating a test class that will test my controller class which uses almost 5 to 8 objects that has many DML statements like insert and delete, however I am feeling a little bit worried about not getting the result like in my controller class. As a turnaround I used the SeeAllData=True annotation in order not to make sample data for each object and to cover most of my codes.
Continuing from my previous post. I want to redirect the user to a custom vf detail page when they create a new Service Order from my custom page order page (force_NewOrder).
I want to display, on a single page, a gauge chart for each record of a certain type (Scholarship Campaign) that is currently active. This number may change at any time, and the specific records being pulled may change at any time. With apex:gaugeSeries, you load a list of data and it uses the first entry only for that chart. My idea was to then create a list that contains all of those data lists List<List<GaugeData>> lofl
, then iterate through that list on the Visualforce page. This does not seem to work however; it does not render anything on the page with it set up that way.