Skip to main content

Feed

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

Am I am able to have my own, salesforce org, to use for my own work purposes? Context: I am a salesforce employee.  

 

#Trailhead Challenges

1 answer
  1. Ajaypreet Singh Saini (Grantbook) Forum Ambassador
    Today, 1:47 AM

    Hey @Samuel Kaplan, No, a Salesforce Developer Edition org should not be used for professional work or as a production environment for a business. It's designed for learning, development, and testing of Salesforce features and functionalities, not for handling live business data and transactions 

    You need to have a paid salesforce org for business use.

0/9000

Let's say I have a SOQL query in Apex like this: 

  cases = [SELECT Id, Field1, Field2, Field3 FROM Case WHERE Id IN :ids]    I want to serialize the result to JSON but include all fields, even if the values are null.    The documentation indicates that JSON.serialize() omits null values even if the suppressNulls param is false.    I know I can manually map the result to a Map<string, Object>() instance to enable serialization, but then I effectively have to write every field name three times, and I'm trying to keep this DRY, and there are many fields.    Is there an approach I can use that let's me write the query once and end up with all requested fields in the JSON?    @* Salesforce Developers * 

2 answers
  1. Today, 1:35 AM

    Maybe the problem isn't in the way the JSON is generated, but in the way it's consumed. 

     

    We work a LOT with JSON.  To make it easier (because we can't control how the JSON is generated), we built a library that simplifies accessing JSON by deserializing into map<string, object>. 

     

    That class has fun methods like getString(), getDate(), getDecimal(), getStringList(), etc., but each of them includes an "ifAbsent." If captured its essence is below

    public string getString(string aKey, string valueIfAbsent)

    {

    object value = aMap.get(aKey)

    return value == null ? valueIfAbsent : String.ValueOf(value).trim();

    }

    public string getString(string aKey)

    {

    return getString(aKey, null);

    }

    There's more code than that because our class handles arbitrary nested paths and other fun stuff, but the gist is above. 

     

    With this approach, 

    1. it doesn't matter if the value is in the map or not, your code can handle it correctly
    2. with the accessor methods for each type, your code doesn't have to do all the casting everywhere.
0/9000

Dear team, i am getting the following error that is posted from other people as well: ' It looks like the Use Sales Coach Agent permission set was not assigned to the correct user.'

  • The Sales Coach Agent has created and assigned to the right permission set.

Could you help me define the issue with this challenge (Enable Sales Coaching in Agentforce)?  

Thanks, 

ST 

 

 

#Trailhead Challenges

12 answers
  1. Today, 1:33 AM

    This issue still  happening 

     

    Update: I changed the last name and First name and added "Use Agentforce SalesCoach" permission set to my user.  Issue is resolved

0/9000

Created a new playground for the Agentforce hands-on challenge. But unable to connect to the org at all. Tried to reset the password, but got the "hint missing. contact admin" prompt.  

Any ideas other than waiting it out to expire and create another one?  

Thanks in advance! 

 

PS: Already raised case with Salesforce, no response yet. 

 

#Trailhead Challenges  #Agentforce  #Hands-OnChallenge  #Trailhead Playground

1 answer
  1. Ajaypreet Singh Saini (Grantbook) Forum Ambassador
    Today, 1:13 AM

    Hey @Nayana Sebastian, it might be caching issue. Can you please try once connecting in incognito window of your browser?

0/9000
Nao Shiomi asked in #Apex

I'm currently building a process in Salesforce that involves the following steps:

  1. I create a new case using a screen flow.
  2. After the case is created, I invoke a case assignment rule from an Apex action within the flow. In this Apex code, I've set Database.DMLOptions.emailHeader.triggerUserEmail = true.

With this setup, when a case is assigned to a specific queue, the members of that queue receive a standard email notification with the subject "A case has been assigned to you."

However, my intention is for a specific email template (email alert) linked to the assignment rule to be sent, not this standard notification. It seems that the email I've configured with the assignment rule isn't being used.

Is it possible to specify the email sent by triggerUserEmail? 

 

#Apex

2 answers
  1. Jun 20, 8:39 AM

    Hi @Nao Shiomi

     

    By default if send by is not specified it will take the user specified in process automation user. 

     

    You can create org wide default email address, get that verified and try to trigger the email using the email address. This should be possible ideally. I haven't explored specific method emailHeader.triggerUserEmail. 

     

    Do let me know if that works. 

     

    Thanks

0/9000

 I’ve seen ChatGPT used for code explanation and documentation writing in other platforms. Is anyone using it with Salesforce use cases, especially Flows, Apex, or user training materials? 

2 answers
  1. Jun 22, 9:56 AM

    Hi @ChatGPT Français

    , ChatGPT can be a huge time-saver for Salesforce Admins, Developers, and Trainers. Many teams are already using it to streamline documentation, optimize admin tasks, and accelerate development — especially in areas like Flows, Apex, and training material creation. 

     

    -Flow Design & Optimization: Helps design, explain, and document Salesforce Flows (screen, record-triggered, etc.). 

    -Formula & Validation Rules: Writes, troubleshoots, and explains Salesforce formulas and validation rules. 

    -Apex Code Assistance: Generates, refactors, and explains Apex code, triggers, test classes, and SOQL queries. 

    -Security & Sharing Advice: Provides guidance on setting up sharing rules, permission sets, and org security best practices. 

    -User Training Content: Creates user-friendly guides, walkthroughs, onboarding checklists, and training materials. 

    -Release Notes & Communication: Drafts release notes, rollout emails, and in-app messages for new features or updates. 

    -Change Documentation: Helps document customizations, metadata, and deployment steps clearly and quickly. 

    -Real-world Adoption: Already used by admins, developers, consultants, and enablement teams for faster output and better clarity. 

    -Prompt Templates: Users benefit from reusable prompts like “Explain this Apex class” or “Write a Flow description for users.”

0/9000

My JS1 certification got suspended  while I was entering the exam and I got the below response from Kryterion, 

After i installed LockDownBrowserOEMSetupapplication.  

The staff at webassessor end helped me adjust the exam times twice.  

When I went in again, I did nothing but suddenly stopped my exam.  

I didn't receive any warning. Even worse, I didn't see the question and was forced to quit the exam. 

 

"Your exam has been suspended. We are unable to effectively and properly proctor your exam due to your failure to meet certain behavioral or environmental requirements identified by the test sponsor. You have been alerted of behaviors or testing environment infractions that inhibit effective proctoring and you have acknowledged these alerts. The permissible limit of alerts set by the test sponsor has been reached. For this reason, you may not continue your exam. Your responses received up to this point will be reviewed or submitted and your test sponsor will notify you of the final results, if applicable." To be honest I didn't do any malpractices during the exam. i showed test area and room clearly.  

 

I have already opened a case with the trailhead support team. Case no. #470809290 but no response yet. 

 

This very much disheartening to see this happing after putting a lot of efforts to prepare for the exam.  

 

I sincerely request the team to look into my case and suggest further steps to reschedule my exam at the earliest possible. 

 

Hoping to hear back soon.

6 answers
  1. Today, 1:09 AM

    I just received the "salesforce help" message as below . No reasons were given for cancelling my exam. Could you please help me apply for a coupon so that I can take the exam at the examination center? 

     

    -------------------------------------------------------------------------------------- 

    Thank you for reaching out to the Certification Security team. You should have received an email outlining the outcome of your exam suspension and next steps, including instructions on rescheduling. 

     

    Due to security reasons, we cannot provide specific details about exam suspensions or offer additional details beyond what’s in the email. 

    --------------------------------------------------------------------------------------

0/9000

I am doing the Trail 

  1. Become an Agentblazer Innovator

In the project:

  1. Build Your First Sales Coach

In the Objective

  1. Enable Sales Coaching in Agentforce

There is a step: 

Grant Users Access to Sales Coaching 

inside this chapter when I click to Assign the User (Step 3) I got the error message: 

 "Sales Coach Agent can't be assigned the Agentforce Sales Coach User permission set license, because Sales Coach Agent's user license doesn't support it." 

I checked the user was created using the parameter indicated in User license 'Einstein Agent'. 

Did anyone get this error? How it was solved? 

 

#Trailhead Challenges

2 answers
0/9000

Hi! I hope you are well here.  

 

I am receiving the following issue: 

Challenge not yet complete in Brave Bear Playground

We can’t find the ‘Sales User Muted’ muting permission set related to the ‘Sales User’ permission set group 

 

Please, I'll be very grateful if you can send help with this. 

 

Thanks!

 

 

 

 

#Trailhead Challenges

2 answers
0/9000