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.

https://trailhead.salesforce.com/content/learn/projects/customize-a-salesforce-object/standard-custom-fields

When I click on fields and relationships, and then click on prospects, the page turns blank.

 

  1. From Setup, click Object Manager and select Account.
  2. Select Fields & Relationships.
  3. Click Prospect Rating, then click Edit. (After clicking on Prospect Rating, the page turns blank. Any idea why? 

 

#Trailhead Challenges

1 answer
0/9000

I am encountering an error while creating a custom report type in my Salesforce Developer org. I am trying to report on Time Log entries, linking them to Projects and Users (Employees).

Here's my setup:

  • Objects:
    • Time_Log__c (custom object) - This is the primary object for the report.
    • Project__c (custom object)
    • User (standard object)
  • Relationships:
    • Time_Log__c has a lookup field named Project__c that points to Project__c.
    • Time_Log__c has a lookup field (named Employee__c or Created By) that points to User.
  • Goal: I want to create a custom report type that allows me to report on time logged, grouped by project and employee.
  • Steps to reproduce:
    1. Go to Setup > Report Types > New Custom Report Type.
    2. Select Time_Log__c as the primary object.
    3. Define the report type details.
    4. In the "Define Report Records Set" section:
      • Click "+ Add related object" next to Time_Log__c.
      • Try to add Project__c.
      • I have tried both searching for the Project__c object and searching for the Project__c lookup field.
      • I have also tried both relationship options "Each 'A' record must have at least one related 'B' record." and "A' records may or may not have related 'B' records."
      • Select the Project__c lookup field to define the relationship.
      • Click "Save."
    5. The error message appears: "Can't create the report type due to A foreign key for child objects can't be null. Include a valid foreign key. Check the details and try again."
  • I have to create report using two custom object project__c and time_log__c
  • Troubleshoot steps that i followed 
  • Verified that both the Time_Log__c and Project__c objects are in "Deployed" status.
  • Checked the API names of the objects and fields to ensure they are correct.
  • Confirmed that the Project__c lookup field on the Time_Log__c object is correctly configured and points to the Project__c object.
  • Checked for validation rules on the Time_Log__c object that might be enforcing the Project__c field to be non-null.

#Reports & Dashboards

3 answers
  1. Steven Trumble (Skie) Forum Ambassador
    Apr 12, 11:14 PM
    Your primary object should be Project, not time log.
0/9000

Hi everyone, 

 

I've been trying to set up the Outlook-Salesforce integration for a two-way sync of emails and calendar events for the past two months, but unfortunately, I've made absolutely no progress. Each apparent step forward ends up just postponing the issue, and I find myself repeatedly back at square one. 

 

The Salesforce add-in within Outlook allows me to connect, but beyond that, nothing functions as expected—I can't even recall the original error message since it happened so long ago. 

 

Afterward, I tried Einstein Activity Capture (EAC). I've successfully set up an Office 365 configuration and assigned the necessary user permissions. Salesforce indicates that the user is "100% configured," yet doesn't show as active. According to Salesforce UI text: "An account is considered active when there is a valid connection, even when the initial sync is in progress." Despite restarting the sync multiple times, the Initial Sync Statuses (Not Started, In Progress, Complete) still show zero users in each category. The UI text also mentions that if data sync fails for a user, their status should switch to "Needs Attention," but this hasn't happened in my case. Instead, the user status displays an "Active Connected Account." 

 

At this point, I'm desperate for help. The help articles and Salesforce documentation are so convoluted and filled with conflicting information—especially around Microsoft potentially discontinuing Outlook integration in phases starting in February 2025, and fully by 2027—that it has become nearly impossible to navigate effectively. Meanwhile, every external resource or YouTube video I've found shows flawless setups without mentioning potential errors or troubleshooting steps. 

 

If anyone has advice, insights, or any pointers at all, I'd greatly appreciate your input. I'm truly stuck and unsure of how to proceed. 

 

Thanks so much.

1 answer
0/9000

Has anyone transitioned from Live Chat to MIAW, considering Live Chat will be deprecated in February 2026? I'm currently working on the migration but have encountered an issue.  

 

The chat button remains visible/online even when agents are offline, which wasn’t a problem with the web version of Live Chat. Due to this limitation, we're considering integrating Einstein Chatbot as a workaround. 

0/9000
1 answer
  1. Today, 9:20 AM

    Check the position object and make sure the API name for the field Approver1 is correct, and the field exists, and it has the right field level security

0/9000

We have a test class with version 17.0. When trying to upgrade the version to 45.0 or later, it gives an error 

Error: Compile Error: Defining type for testMethod methods must be declared as IsTest at line 15 column 35  

 

Text class is: 

/** 

 * An apex page controller that exposes the site forgot password functionality 

 */ 

public class ForgotPasswordController { 

    public String username {get; set;}    

        

    public ForgotPasswordController() {} 

     

    public PageReference forgotPassword() { 

        boolean success = Site.forgotPassword(username); 

        PageReference pr = Page.ForgotPasswordConfirm; 

        pr.setRedirect(true); 

         

        if (success) {               

            return pr; 

        } 

        return null; 

    } 

     

     public static testMethod void testForgotPasswordController() { 

        // Instantiate a new controller with all parameters in the page 

        ForgotPasswordController controller = new ForgotPasswordController(); 

        controller.username = '

test@salesforce.com

';         

     

        System.assertEquals(controller.forgotPassword(),null);  

    } 

 

Please help with steps to upgrade the Apex class without error. 

 

 

#Sales Cloud  #Salesforce Developer

1 answer
  1. Today, 9:17 AM

    In older API versions (like 17.0), test methods could be declared using the testMethod keyword. However, in newer versions, Salesforce requires test methods to be within classes annotated with @isTest or individual methods to be annotated with @isTest 

    and

    move your test methods out of the production class (ForgotPasswordController) into a separate test class. 

     

    Production class

    public class ForgotPasswordController {

    public String username { get; set; }

    public ForgotPasswordController() {}

    public PageReference forgotPassword() {

    boolean success = Site.forgotPassword(username);

    PageReference pr = Page.ForgotPasswordConfirm;

    pr.setRedirect(true);

    if (success) {

    return pr;

    }

    return null;

    }

    }

    Test Class

    @IsTest

    private class ForgotPasswordControllerTest {

    @IsTest

    static void testForgotPasswordController() {

    // Instantiate a new controller

    ForgotPasswordController controller = new ForgotPasswordController();

    controller.username = 'test@salesforce.com';

    // Call the forgotPassword method

    PageReference result = controller.forgotPassword();

    // Assert the expected outcome

    System.assertEquals(null, result);

    }

    }

0/9000
  • Create a New Feature record.
    • New Feature Name: Flow
    • Feature Area: Productivity
    • Business Impact: High
    • Implementation Effort: High
    • Decision status: Proposed

 

 

#Trailhead Challenges

1 answer
0/9000

I created a new view and added few fields on that and passing that view properties to apex for new record creation. If i am not wrong i have seen that 3000 is max length of the text input field on slack app's, and added 3000 as the max input for my fields on slack app view form. But when i tried to submit the form with max data in all the fields i am getting this error saying:  System.HandledException: Component contains too much action data. Must reduce length of event definitions or properties. And then i tried submitting the form with 2500 char's in all fields and kept trying it by bringing down the max length and when i gave 250 as max length for the input parameters it worked. So is there any alternative to this issue to fix or is this a limitation. 

2 answers
0/9000

What are the recommended integrations for Online Giving that are compatible with Nonprofit Cloud?  

 

Our client is migrating from NPSP and currently use GiveSmart but GiveSmart has indicated they cannot yet integrate to NPC (we can do API instead but the client wants other options). 

4 answers
  1. Today, 8:57 AM
    Hi Stephanie - happy to have a chat about how FinDock can help your client if that would be helpful? We’ve fully supported NPC since launch.
0/9000