Skip to main content Take our 5-minute Community Survey. Open now through 4/11/2025. Click here to participate.

Feed

Connect with fellow Trailblazers. Ask and answer questions to build your skills and network.

public class MyIterable implements Iterable<String>{

private List<String> strings;

//constructor that initializes the string field with the provided list

public MyIterable(list<String> strings){

this.strings = strings;

}

//Iterator method taht returns on iterator for the strings list

public Iterator<String> iterator(){

return strings.iterator();

}

}

Encounter with an error called Challenge not yet complete in Empathetic Impala Playground

We can't find the debug log with the string ‘Hello’.

Can anyone pls help me on this issue!!!!

 

 

#Trailhead Challenges

2 answers
  1. Today, 6:40 AM

    Hello @margam mamatha

    Try to use this code:

    Apex Class:

    public class MyIterable implements Iterable<String> {

    Private List<String> strings;

    // Constructor to initilize the list of strings

    public MyIterable(List<String> strings)

    {

    this.strings = strings;

    }

    // Implementing the iterator method

    public Iterator<String> iterator(){

    return strings.iterator();

    }

    }

    Test Class:

    @IsTest

    public class MyIterableTest {

    @IsTest

    static void testIterableForLoop(){

    // Create a list of strings

    List<String> strings = new List<String> {'Hello', 'World'};

    // Create an Instance of MyIterable

    MyIterable myIterable = new MyIterable(strings);

    // Use a for loop to iterate over the MyIterable instance

    for(String str: myIterable){

    //Print each string to the debug log

    System.debug(str);

    }

    }

    }

    After saving the Apex Class and Test Class, click "Run Test". 

     

    https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000KByK30AL

0/9000
1 answer
  1. Today, 7:55 AM

    Hi , 

     

    Your Trailhead Playground comes with (2) full Salesforce licenses. If you've already used up both licenses and you try to create the new System Administrator user, it will look like this: 

     

     

    Profiles other than admins also use Salesforce licenses.

     

     

    If you do not find the "Salesforce" license in the drop-down, please check for the other user who's active with that license and deactivate them, please follow the below steps to deactivate.

     

     

    Goto setup--> users-->click view users drop down and then select "Active users" option. Here you can find the list of active users. Please deactivate the "salesforce" license user.

     

     

    NOTE: Salesforce License can be assigned to other Profiles too, hence please check out all your active user who has Salesforce license and then proceed accordingly. 

0/9000

I'd like to add the Contract Contact Role related list to the Contact page layout, akin to Opportunity and Case Contract Roles. But it's not available. Why is the relationship between Contract and Contact different than Opportunity or Case and Contact?  

 

#Contract Object

1 answer
  1. Divya Chauhan (Kcloud Technologies) Forum Ambassador
    Today, 8:10 AM

    HII @Craig Munster

     

    The reason you can't add the

    Contract Contact Role

    related list to the Contact page layout is due to how Salesforce structures the relationship between Contacts and Contracts. Unlike Opportunities or Cases, where Contact Roles are directly tied to the Contact object, the relationship between Contracts and Contacts is managed differently. 

    Here are some  Key Differences:

    1.Independent Setup for Contact Roles:

    • In Salesforce, Contact Roles for Contracts are configured independently. They are not inherently tied to the Contact object in the same way as Opportunity or Case Contact Roles.
    • This means the related list for Contract Contact Roles is available on the Contract page layout, but not on the Contact page layout.

    2.One-Way Relationship:

    • For Opportunities and Cases, the Contact Roles are bi-directional, meaning they can be viewed from both the Contact and the related object (Opportunity or Case).
    • For Contracts, the relationship is more one-way, focusing on the Contract object itself.

    3.Customization Limitation:

    • Salesforce does not natively support adding the Contract Contact Role related list to the Contact page layout. This is a platform limitation.

    If you need to display Contract Contact Roles on the Contact page layout, you can use a custom solution:

    • Custom Related List:
      • Create a custom Visualforce page or Lightning Component to display Contract Contact Roles on the Contact page.
      • Use SOQL queries to fetch the related Contract Contact Roles and display them dynamically.
    • Custom Report or Dashboard:
      • Build a report that shows Contracts and their associated Contact Roles, filtered by the Contact. Embed this report on the Contact page layout using a dashboard component.
0/9000

Line: 2, Column: 1 

System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, ExampleTrigger: execution of AfterInsert caused by: System.EmailException: SendEmail failed. First exception on row 0; first error: INVALID_ID_FIELD, ID is invalid or you do not have access to the record.: [toAddresses, Your email address] Class.EmailManager.sendMail: line 12, column 1 Trigger.ExampleTrigger: line 5, column 1: [] 

 

#Trailhead Challenges

4 answers
0/9000

Hello, 

 

I'm experiencing an issue for a client where the pop-up works fine for system administrators, but isn't working for other profiles.  

 

Has anyone experienced this and if so, can you advise how to rectify this? 

 

For info the Apex Class is still api v43.0, and like others, we are waiting for an update to conform with the ICU Locale update.

3 answers
0/9000

Hello gang! 

 

I'm working on the module "Install and Customize a Salesforce Labs Solution" as part of the Trail "Meet Your Business Needs with AppExchange". I've installed the Salesforce Labs package, and am working on the Create Project Tasks step.  

 

The trailhead details include adding a "Procure Assembly Line" task, but with no start date. As the Start Date is a required field, I've been adding 1/1/24. However, when I go to check the challenge, I get the error, "The 'Procure Assembly Line' task isn't configured correctly for the required project tasks by phase." 

 

Has anyone encountered this error before? Any recommendations to resolve? Thank you! 

 

#Trailhead Challenges

0/9000

Hello, studying for the data cloud exam.

I feel like practice exams i found on the internet does not teach me anything. They just say general things about data cloud like "What is the role of Identity Resolution feature" without getting in details..

Can you recommend me some practice exam that actually looks like the certification itself ?

Thank you

6 answers
  1. Andrew Russo (BACA Systems) Forum Ambassador
    Jun 1, 2024, 12:29 AM

    the best thing is the trailhead cert prep trailmix

0/9000

An unexpected error occurred, and we couldn't check if the new Product Support case for Pyramid Construction was created. I was working on a case escalation rules and this happen

 

#Trailhead Challenges

1 answer
0/9000

お世話になっております。 

 

表題の件につきまして、ご教示いただきたく投稿させていただきます。 

 

現在、組織におけるリストメールの配信上限が1日5,000通となっておりますが、HTML形式のメールを5,000通以上配信したい場合、皆様はどのように対応されているのでしょうか。 

開発でしょうか、またはAppExchengeを取り入れたりでしょうか。 

 

なるべく開発等を抑えていいやり方がないか模索しております。

なにか情報等ございましたらご教授いただきたいです。

何卒よろしくお願いいたします。 

 

リストメールの制限事項 

 

https://help.salesforce.com/s/articleView?id=sales.limitations_email_list_email.htm&type=5

0/9000