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.

Code below; 

 

public class AccountHandler { 

    public static void insertAccount(Integer numNewAccounts){ 

         

        List<Account> addAccounts = new List<Account>(); 

         

        Integer counter = 1; 

         

        while(counter <= numNewAccounts ){          

            Account a = new Account(); 

             

a.Name

 = 'Acme Inc ' + counter; 

           a.AccountNumber = 'A000' + counter; 

            addAccounts.add(a); 

            counter++; 

        } 

   

        insert addAccounts; 

    } 

 

#TrailblazerCommunity

 

 

#Trailhead Challenges

2 answers
  1. Ruchit Patel (Cognizant) Forum Ambassador
    Today, 3:47 AM

    @Hanna Teape

    can you share screenshot of error message you are getting? Thanks! 

     

0/9000

Hello, I have a validation rule that is not firing at all. It was working before I added in the PriorValue line. That was added as they only want to force those fields when moving from one stage to another in 1 stage increments, so if they go from stage 2 to 5 it would not fire.  Its probably something simple that I am missing as I have been staring at it so long..... 

 

AND( 

ISCHANGED(StageName), 

PRIORVALUE(StageName) = "1: Discovery", 

ISPICKVAL(StageName, "2: Demo"), 

$

Profile.Name

 <> "System Administrator", 

$

RecordType.Name

 = "Sales Opportunity", 

OR( 

ISBLANK(Compelling_Event__c), 

ISBLANK(Champion__c), 

ISBLANK(Decision_Criteria__c), 

ISBLANK(Buying_Process_Understood__c), 

ISBLANK(Identify_Economic_Buyer__c) 

 

#Sales And Marketing  #Formulas  #Validation Rule

2 answers
  1. Ruchit Patel (Cognizant) Forum Ambassador
    Today, 3:45 AM

    @Heidi Whisman

    Some checks you can try 

    1. Logged in user is not System Admin 

    2. Picklist values are used correctly for

    StageName. Make sure you are using API Names of the Stage and Not Labels

0/9000

Hi, I get this error: "We can’t find a custom field named ‘Type’ on the Program object." when completing the challenge, despite the fact that I have managed to follow/complete where possible for all previous units. For this particular challenge, I have created custom objects and fields where not available. My other challenges in 'Data Security' were successful in the same playground. Please advise. 

 

#Trailhead Challenges

1 answer
0/9000

Hi, when I check my challenge, it says "We couldn’t find your quick action in the List View Search Layout for cases. Verify that the quick action was added to the case object’s Search Layout called List View. In the “List View Actions for Lightning Experience” section, check to see if the Replacement Owner quick action is listed in the Selected Quick Actions list." 

 

It looks like the same issue as link below, but the screen has changed. 

"

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

 

As shown in the attached image, the solution 'Search Layouts for Salesforce Classic' is no longer available, and instead, there is 'List View Button Layout.'  I have added the 'Replacement Owner' there, but it seems that the 'Check Challenge' cannot find it.

Can't Complete Set Up Service Console Productivity Tools Challenge

 

Could someone resolve this issue? 

 

 

 

 

#Trailhead Challenges

4 answers
0/9000

I need help ASAP! I am trying to complete my Spring 24' maintenance  for my SF Admin cert but for some reason each time I try to launch the playground I have been getting the same error message for about 2 weeks now. I tried using different web browser and my iPad still no luck!!! Is anyone else experiencing this??? 

 

#Trailhead Challenges

1 answer
0/9000

標題の件となります。 

ケースオブジェクトの関連リストに、そのケースの取引先をキーとして、その取引先に出荷している納入商品レコードを表示したいです。 

現状はページレイアウト画面から関連リストに追加しようとしても候補に納入商品項目が存在しないため、追加できる方法をご存知でしたらおしえていただきたいです。 

 

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

1 answer
  1. Hiroki Nakazawa (circlace Inc.) Forum Ambassador
    Today, 3:32 AM
    ケースの取引先に関連する納入商品をケースの関連リストとして表示する場合、ページレイアウトの設定ではなくレコードページから関連リストを追加する必要があります。
0/9000
0/9000

Can Someone help me with these questions I have. 

1. Do I have to create a new SSO settings while keeping the existing one as it is? 

2. Do I have to create a new separate certificate( i.e. request signing certificate field in Salesforce SSO settings) for Azure IDP instead of using the existing one which I use for Okta. 

3. Do I have to create another permission set to give users permission( Is single signed on enabled again for Azure IPD)?

2 answers
  1. Today, 3:12 AM

    Hi @Rinkal Patel,

     Thank you for clarifying. One more question though , Do I have to create a separate permission set with permission Is-sign on enabled for Azure ADP or use the existing permission set which I currently use for Okta.

0/9000

カスタムボタンからレコードを作成する際、2つの参照項目にデフォルト値としてレコードをセットしたいと考えています。 

 

標準オブジェクトA:取引先(Account) 

カスタムオブジェクトB:案件(Deal) 

カスタムオブジェクトC:記録(Log) ←ここにボタンを作成 

 

Bの詳細ページに設置しているCの関連リストに「新規(自作)」というリストボタンを設置し、そこから記録レコードを作成したいと考えています。 

このとき、Cの中にある「案件名」「取引先名」という項目に、デフォルトで参照レコードを設定したいです。 

案件名は、ボタンを押したときの詳細レコードの案件、顧客名は、当該案件が参照している顧客です。 

※BとAの間にも参照関係があります。 

 

今できているのは、 

・{!Deal__c.Id}としてBの案件名を初期値として入れること。 

・{!Deal__c.Account__c}として、オブジェクトAの名称をテキストで取得すること。(Account__cは、Bの中にあるAの参照項目名です。) 

だけです。Bに紐づくAの名称は取得できているため、どうにかしてこのAのsalesforceIDを取得したいのですが、どのようにすれば実現可能でしょうか。 

{!Deal__c.

Account.Id

{!Deal__r.

Account.Id

としてもエラーとなりました。 

 

画像がなくわかりづらくて申し訳ありません。 

お知恵をお貸しいただけますと幸いです。

1 answer
  1. Today, 3:00 AM

    @yasutaka miyagawa さん 

     

    エラーの内容ですがIdでなくて取引先名を参照している感じでしょうか? 

    そうであれば、Dealオブジェクトに数式項目を作ってみてください。 

    この数式項目にAccount__cを使います。 

     

    この数式項目をこのURLで指定して使ってみてください。 

0/9000

Salesforce Revenue Cloud: I am trying to query a Product Option in an autolaunched Flow but I can't find the Lookup field "ParentQuoteLineItemId" when I query the Line Item fields. How to check if a product option is added to a Product Bundle in the QLE?  

The Logic would be to search for a particular product Option and check if it's ParentQuoteLineItemId match with the Line Item Number of the Bundle Parent.  

 

#Revenue Cloud  #Flow

0/9000