You need to sign in to do that
Don't have an account?
Inbox Outbox
1. Write a method that takes in a list of Account Ids. The method should have the return type: map<Id, map<Id, list<OpportunityLineItem>>>. Each account Id passed in should be mapped to a map of its opportunities mapped to the list of their respective opportunity line items. Only opportunities with an amount of 500,000 or more should be included in the return. There is a custom boolean field on the opportunity line item with API name Export_Ignore__c. If this field is true, the account should be removed from the return map.
2. Write a SOSL statement that returns any leads or contacts where either the first or last name contains ‘cha’. Both lead and contact results should contain the email address, first name, and last name. Contacts should also include the account Id.
3. Write a SOQL statement that returns the Id of 10 accounts and all of the opportunity names associated with each account.
Someone help me with this code, very urgent?
1. Write a method that takes in a list of Account Ids. The method should have the return type: map<Id, map<Id, list<OpportunityLineItem>>>. Each account Id passed in should be mapped to a map of its opportunities mapped to the list of their respective opportunity line items. Only opportunities with an amount of 500,000 or more should be included in the return. There is a custom boolean field on the opportunity line item with API name Export_Ignore__c. If this field is true, the account should be removed from the return map.
2. Write a SOSL statement that returns any leads or contacts where either the first or last name contains ‘cha’. Both lead and contact results should contain the email address, first name, and last name. Contacts should also include the account Id.
3. Write a SOQL statement that returns the Id of 10 accounts and all of the opportunity names associated with each account.
Here are three different methods, you can change names however you want.