• venkata kalyani konakalla
  • NEWBIE
  • 49 Points
  • Member since 2016
  • Ms
  • Virtusa Consulting Services

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 6
    Replies
I am developing this in SFDC.
I have a custom field whose type is URL.
I noticed that if I do the following, I can set the url of the case record.
myCase.customField = 'xxx.salesforce.com/recordid_of_othercase/d'
I would like to create 5 links of 5 different recordids in this custom field instead of having just one link for one recordid.
Q1. Can I do this in one custom field in some way or should I create 5 custom fields and fill each field with recordid?
Q2. I heard that I can change the way the url looks, having caseNumber field instead of a long url. What is the exact format of the code for this?
Thank you.
Completed the challenge.  Added the notification (see attached image) in the Wave developer org.  It looks like it did not save the first time.  Added the notification a 2nd time, as shown in screen capture. User-added image
I have some assumptions for this trail that I’m hoping will lead to the right answer. However, after going over the instructions a number of times, I can’t verify that these are correct.
 
Record Types
 
I’m assuming that I need to create record types for cases and opportunities. I’m planning to name the record types for cases:
 
“Reported by a customer”
“Reported by an expedition leader”
 
I’m assuming that the check doesn’t care what these are called or the case of the characters.
 
For opportunities, I’m planning:
 
“Individual Opportunity”
 
I’m assuming that the data I need to upload will be “Individual_Opportunity” to match what will be the actual name of the type, not it’s label. I already have an “Individual Opportunity” sales process that I plan to tie this to.
 
User Profiles
 
I’m assuming I need to create new user profiles because the instructions say: “Enable this navigation for the sales, service, and fulfillment profiles (expedition leaders and fulfillment team members), system administrators, the custom support profile, and custom sales profile.” I see the following user profiles that match three of these:
 
Custom: Sales Profile
Custom: Support Profile
System Administrator
 
I believe these match the last three listed in the instructions, but I don’t see anything for the first three. It’s possible “Custom: Sales Profile” matches “sales” and “Custom: Support Profile” matches “service”, but that doesn’t seem likely. So, I’m planning to use the three I believe match plus these three new ones:
 
Sales
Service
Fulfillment
 
Presumably, expedition leaders and fulfillment team members will be assigned the Fulfillment profile. I’m not sure who will be assigned the other five profiles, although “System Administrator” doesn’t need to map into any of the business roles in Relaxation Gauntlet.
 
Opportunity Products
 
I’m using Data Loader to load data. It does not see any Opportunity Products table. Instead, it finds “Adventure Package (OpportunityLineItem)”. I’m assuming that the internal name for the Opportunity Products table is “OpportunityLineItem”. And, it thinks “Adventures” is “Product2”, so I’m guessing that the standard table is really named “Product2” rather than “Product”.
 
Explorers = Contacts
 
The entity diagram in the instructions does not directly relate the opportunity object to the explorer object (contacts). The explorer object is related to the Adventure Package (Opportunity Products/OpportunityLineItem) and to the fulfillment object. Challenge #8 says, “Import legacy data for opportunities, explorers, adventures, opportunity contact roles, and adventure packages.”
 
No opportunity contact roles are assigned in the source data for the import. There’s no instruction what to call the role. So, I’m assuming that I can create Opportunity Contact Role records with the ROLE field set to whatever I want (let’s say, “Explorer”) and fill the other fields with some appropriate data (like setting ISDELETED to False), and the check won’t care what I call it.
 
The instructions don’t say here to create the fulfillment records, so I’m assuming that the check won’t care that this data is missing. I’m also assuming that even though the source data doesn’t have any tab for the opportunity product (Adventure Package) records, I can make this up from the data on the “Opps w Adventure + Explorer” tab data.
 
Does anyone know if any of these assumptions are incorrect before I load up the data and go on?
 
Thanks!
 
Thanks in advance for your advice!
 
 
Automate record creation
Install the unmanaged package for the schema and stubs for Apex classes and triggers. Rename cases and products to match the HowWeRoll schema, and assign all profiles to the custom HowWeRoll page layouts for those objects. Use the included package content to automatically create a Routine Maintenance request every time a maintenance request of type Repair or Routine Maintenance is updated to Closed. Follow the specifications and naming conventions outlined in the business requirements.
how to achieved ?
Here is the Question


Create an Apex class that implements the Schedulable interface to update Lead records with a specific LeadSource. Write unit tests that achieve 100% code coverage for the class. This is very similar to what you did for Batch Apex.
Create an Apex class called 'DailyLeadProcessor' that uses the Schedulable interface.
The execute method must find the first 200 Leads with a blank LeadSource field and update them with the LeadSource value of 'Dreamforce'.
Create an Apex test class called 'DailyLeadProcessorTest'.
In the test class, insert 200 Lead records, schedule the DailyLeadProcessor class to run and test that all Lead records were updated correctly.
The unit tests must cover all lines of code included in the DailyLeadProcessor class, resulting in 100% code coverage.
Run your test class at least once (via 'Run All' tests the Developer Console) before attempting to verify this challenge.


Here is my code so far

global class DailyLeadProcessor implements Schedulable {

    global void execute(SchedulableContext ctx) {
        list<leads>Lead = [select leadSource from lead where isnull= true]
        
         for (Integer i = 0; i < 200; i++) {
            Leads.add(new lead(
                name='Dream force'+i
            ));
        }
        insert Leads;
    }

I am not sure what is wrong here