Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
Shubhashini RajaShubhashini Raja 
Hello Trailblazers!!
I cleared my Admin Certification today. I'm so happy. Thank you so much Trailblazer Community for helping me accomplish this. You guys have responded immediately for every question I posted and thanks a lot for sharing the required materials on topics I need referencing. You guys are amazing. Let's keep Blazing!!

Next prep for "Advanced Admin"
 
Best Answer chosen by Shubhashini Raja
Sakthivel MadeshSakthivel Madesh
Wow.. Congratulation Shubhashini !!

Try this trailmix from trailhead - https://trailhead.salesforce.com/en/users/strailhead/trailmixes/prepare-for-your-salesforce-advanced-administrator-credential

Advanced Administrator Quiz from SalesforceBen Website - https://www.salesforceben.com/certified-advanced-administrator-quiz/
Kristen ThomasKristen Thomas 
Hey all, 

I am working to on the Analyze Your Data Over Time module in the Einstein Analytics Desktop Exploration trail. I have done the steps for this lens at least 10 different times in the exact order that the module says I am supposed to. I have deleted everything out and built it up again. I have relaunched the playground and started from scratch but I keep getting the error message listed below. Any thoughts on how I can fix this and be able to move forward?

The 'Sales Pipeline Overview' lens does not appear to have the correct query. Please check the requirements and ensure everything is setup correctly.
Best Answer chosen by Suseendran (salesforce.com) 
Kristen ThomasKristen Thomas
Did a ticket with their Help Desk and got a response saying they were aware of the problem and working to fix it. I haven't had a chance to try it again yet but it looks like it's a problem on the back end rather than an issue with us following the directions of the challenge. Will let you know when it goes through as correct.  
Alex XiongAlex Xiong 

Does anyone know what this error message means? A search online hasn't helped.

screenshot

Best Answer chosen by Alex Xiong
Santiago Ibarra CaceresSantiago Ibarra Caceres
This is now classified as a known issue:
https://trailblazer.salesforce.com/issues_view?id=a1p4V000000oRXpQAM
 
Karen Leder WheelerKaren Leder Wheeler 
I'm working on the Lightning App Builder module -  "Work with Custom Lightning Components". The Challenge requires the installation of a packagae and adding a custom lightning component (ContactsToday) to an existing "MyData" Lightning page.  The problem is I don't have the "MyData" Lightning page and can't find the correct module for it. The only two things that come up in a Trailhead search are the Lightning Experience Customization module which I already completed and did a 2nd check to make sure I didn't miss something or complete it in a different Playground, and a project "Develop an Account Geolocation App with Aura Components" which I looked at and it doesn't have anything to do with creating the "MyData" Lightning page.

PLEASE if anyone can direct me to the right module I would be so grateful - I haven't gotten a response to my ticket about it from Trailhead support and I really want to finish this module.

Thanks in advance for any suggestions!
Best Answer chosen by Karen Leder Wheeler
Chandler CrewdsonChandler Crewdson
Oh wow, that is bizarre. The only thing I can think of is to create the MyData Lightning App page based on the criteria of what should be there. Here is a screenshot of the requirements for my "Build an App Home Lightning Page".

User-added image

If you create the page with this criteria, maybe you can use it to pass the next section?

Best of luck!
Jyoti kumariJyoti kumari 
Hi,

I am not able to view the custom fields added to the Task and Events in the Task and Event Object definiton page .
Kindly help on this.

Thanks
Best Answer chosen by Jyoti kumari
Vinay ChaturvediVinay Chaturvedi
Hi,
You might have created them on the Activity object, Tasks and Events are types of Activities.

To access these fields:
Go to App Setup | Customize | Activities | Activity Custom Field

User-added image
 
ℳ𝒊𝓽 C𝓱𝓪𝓷𝓭𝓸𝑙𝓪ℳ𝒊𝓽 C𝓱𝓪𝓷𝓭𝓸𝑙𝓪 
Hi, currently there is no way to assign campaign member ownership. I would like reporting to in the same page as lead and contacts for campaign member. Today, I have to create two diff reports for for tracking leads (their status) and contacts (their status if they were added to the campaigns). From campaign member standpoint it does not matter if member is lead or contact. That can give me a single view if I have same kind of fields (like lead status/conatct status, sales accepted Yes/no) means I can report on campaign members rather than on leads and contacts seperately. 

Is there a way that I can create a custom ownership field on campaign member record that is based on lead or contact owner (I mean that reference the owner from contact and lead record?) 

Thank you!
Best Answer chosen by ℳ𝒊𝓽 C𝓱𝓪𝓷𝓭𝓸𝑙𝓪
Pattie MilnerPattie Milner
Hey Mit - Add a new formula field to your campaign member object with the return type of Text.
This will be the formula:
IF(
 ISBLANK(ContactId),
 Lead.Owner:User.FirstName + " " + Lead.Owner:User.LastName,
 Contact.Owner.FirstName + " " + Contact.Owner.LastName
)

 
System AdministratorSystem Administrator 
Challenge Description:

Use DML to insert multiple records into a Salesforce database

Acme Inc. has opened three new locations in Texas. Acme needs to insert the new accounts into its database. Create a class and one method that creates three new accounts and adds them to the database.
  • Create a public Apex class named AccountHandler
  • Add a public static method to the class:
    • Name: insertAccount
  • Include a parameter for the number of new accounts:
    • Data type: integer
  • Create a list of Account records:
    • List name: addAccounts
  • Use a while loop to add three new Accounts to the list, where n is a value that is incremented by 1 during each iteration of the loop:
    • Name: Acme Inc n
    • AccountNumber: A000n
  • Hint: You did something like this when you created three new Tea Factory stores.
  • Write one DML statement that inserts all three records into the database at one time
  • Run your insertAccount method.

Error Message:

We can't find code that creates an 'addAccounts' list, adds three accounts to the 'addAccounts' list, and then inserts the 'addAccounts' list.

Code:
 
public class AccountHandler {
	
    public static void insertAccount(Integer numAccts) {
        
        List<Account> addAccounts = new List<Account>();
        
        Integer counter = 1;
        
        while(counter <= 3) {
            
            Account a = new Account();
            a.Name = 'Acme Inc ' + counter;
            a.AccountNumber = 'A000' + counter;
            
            addAccounts.add(a);
            
            counter++;
            
        }
        
            if(addAccounts.size() > 0) {
            
            Database.insert(addAccounts);
        }
    }
    
}
What am I doing wrong?

 
Best Answer chosen by Jayson (salesforce.com) 
kumar ranjankumar ranjan
This worked for me. 


public class AccountHandler {
    public static void insertAccount(Integer numberofAccounts){
        Integer n = 1;
        List<Account> addAccounts=new List<Account>();
        while(n <= numberofAccounts){
            
          
            Account tempaccount=new Account();
            tempaccount.Name='Acme Inc '+ n;
            tempaccount.AccountNumber='A000'+ n;
            addAccounts.add(tempaccount);
            
            n=n+1;
        }
        insert addAccounts;
        
    }
}
Rodrigo BarcatRodrigo Barcat 
Hi guys,

I am using a formula to show the diff between NOW()-Last Modified Date. The below formula, almost, work as expected. But I see some weird situations on output. some times it is HH:MM, other time H:M, etc. I would see HH:MM

The formula is: IF(
NOW()-LastModifiedDate > 0 ,
TEXT( FLOOR( MOD( (NOW()-LastModifiedDate ) * 24, 24 ) ) ) & ":"
& TEXT( ROUND( MOD( (NOW()-LastModifiedDate ) * 24 * 60, 60 ), 00 ) ),
"")

My output
Imagem adicionada pelo usuário
Best Answer chosen by Rodrigo Barcat
Ankush AgarwalAnkush Agarwal
Hi,

You need to use LPAD to add zero before hour and time. You may try with below updated formula:

IF(
NOW()-LastModifiedDate > 0 ,
LPAD(TEXT( FLOOR( MOD( (NOW()-LastModifiedDate ) * 24, 24 ) ) ), 2, '0') & ":"
& LPAD(TEXT( ROUND( MOD( (NOW()-LastModifiedDate ) * 24 * 60, 60 ), 00 ) ), 2, '0'),
"")
Stéphane CAILLAUDStéphane CAILLAUD 
Hi,

I want to put a different background color path on a specific step when a specific status is selected. Is it possible to do it?

Thank you.
Best Answer chosen by Stéphane CAILLAUD
Naval SharmaNaval Sharma
No really, while building the path there is no way to set the color. So you can't change it. To change it, you will have to create a custom VF page where you can do thigs as per your need.

Thanks,
Jessica KehoeJessica Kehoe 
When I try to setup a Parter User for my Partner Community, I get an error that says:

Portal Account Owner Has No Role
An account owner must be associated with a role to enable portal users or transfer portal users to his or her account.

Click here to return to the previous page.

What does this mean and now am I supposed to get past this to continue?
Best Answer chosen by Jyothsna (salesforce.com) 
Tom BassettTom Bassett
Hello Jessica,

If you take a look at the Account Record for this Partner you should be able to see the Owner.

Clicking through to the Owner Record and pressing on User Detail should then allow you to Edit and give that user a role.

Once you hae set the role you'll be able to create the Partner User.

A role is required for the Account Owner to roll up information via the Role Hierahcy.

If this helps be sure to mark as best.

Thanks, Tom