2025年01月の質問の中から整理します

[まとめページに戻る](https://qiita.com/Keiji_otsubo/items/60afc2a8d211b6f7d89f)
[Trailhead関係　年月で整理に戻る](https://qiita.com/Keiji_otsubo/items/84deb9c88d800102261a)

**参照して頂くのは結構ですが、そのまま内容を丸ごとコピーするような行為は控えて欲しいです。一応時間を掛けて作っているので、その点はご考慮願いたいです。**

なるべく、回答の中身も転記しておきます。結構な割合で質問者さんが黒歴史を消したいのか質問自体を削除しますので... 最良の答えとしてもらっても即消されることは大変多いです。

2025年が始まりました。相変わらず質問は少ないし回答しても反応はありませんが、自分自身の勉強として回答は続けようと思います。

[2025年01月未解決の質問](https://qiita.com/Keiji_otsubo/items/2b0c3fcf7f3e72c79000)

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

+ [We updated an account that had 'Match_Billing_Address__c' set to true. We expected the trigger to fire, but it didn’t. Make sure the trigger is firing when 'Match_Billing_Address__c' is true.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007erHhX)

:::note

```Java
trigger AccountAddressTrigger on Account (before insert, before update) {
     for(Account a : Trigger.new){
        If (a.Match_Billing_Address__c == true) {
            a.ShippingPostalCode = a.BillingPostalCode;
        }   
    }
}
```

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


# We couldn't find a Chatter Post on the Travel Approval Object. Make sure the following Chatter post is on your feed: '@[Eric Executive] Which department should I associate this travel request with?'.

+ [Test Collaboration on Enable Chatter on the Travel Approval Object challenge an email was not received from @Eric Executive​, therefore unable to complete the challenge. please assist trailblazers](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000J9O8B)

:::note
you have to post it into the travel Approval TA-00001 not into the tab "Chatter" 

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/b573a95a-4ee5-d679-9948-aad8e33689b7.png)

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


# Can't delete this Dashboard because it's referenced in link widgets used in other dashboards.

+ [Can't delete this Dashboard because it's referenced in link widgets used in other dashboards.](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000KequO)

:::note
Please check this article.

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

 I didn't the dashboard. You have to press Ctrl+E and look for "link" keyboard and then find the related links to other dashboards and delete the widgets. Then you can delete the dashboard
:::


# フランス語のためエラー？　scorbin@example.com

+ [Daily dose of Salesforce CRM module - No contact found](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000Kfqua0AB)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/440ead03-4239-ced5-8243-b7233283b00f.png)



# In the Main_Contact component, we can’t find the 'Department' column.

+ [In the Main_Contact component, we can’t find the 'Department' column.](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000KfrI1)

:::note
>Is there anyway i can change the API name to align with what is needed? my API name is New_Bot_Opp_V2 vs they are looking for New_Bot_Opp

If New_Bot_Opp already exists, try renaming or deleting this element

There isn't a way to change it to my knowledge. Please refer to the idea article here: "https://trailblazer.salesforce.com/ideaView?id=08730000000oMabAAE"

Only way to change is by cloning and then renaming it. Other thing you could do is extract the metadata of the flow change the API Name and deploy it, but it would still create a new instance of the flow but wont rename.

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

# We can't find a Lightning Web Component named 'selector'. 

+ [am stuck at the end of the challenge when it says to edit the selector and getting a error and trying to fix it](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000KfkgT)

:::note
Follow the steps:

Lightning Web Component is not enabled in your org


To check if the Lightning Web Component is enabled, go to Setup > Lightning App Builder > Components and search the component as selector.

Lightning Web Component is installed in a different org or not published or not compatible salesforce version.

Finally, check selector.js file in the Handle Events in Lightning Web Components remove it and going on the order from trailhead. otherwise, reinstall it.

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

# We can’t find a custom field named ‘Type’ on the Program object

+ [Help regarding a error!](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000KCD6k)

:::note
I checked the field and field level security, but my org was not updated to a new dev org, so I created a new org which I mistakenly missed in the first module. So I created a new developer's org and connected that with my trailhead playground. 
:::

# ClosedOpportunityTrigger : ClosedOpportunityTrigger: execution of AfterInsert caused by: System.DmlException: Insert failed. First exception on row 0 with id 00Tbm000004HLlhEAG; first error: INVALID_FIELD_FOR_INSERT_UPDATE, cannot specify Id in an insert call: [Id] Trigger.ClosedOpportunityTrigger: line 23, column 1

+ [Challenge in Apex Bulk Trigger](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000KfwXp0AJ)

:::note

```Java
trigger ClosedOpportunityTrigger on Opportunity (after insert, after update) {
     List<Task> taskList = new List <task>();
     for(Opportunity opp : Trigger.New){
        if(opp.StageName == 'Closed Won'){
            taskList.add(new Task(Subject = 'Follow Up Test Task', WhatId = opp.Id));
        }
       }
    if(taskList.size()>0){
        insert taskList;
    }
}
```
:::

# We couldn't find the field 'Status' on the Position object. Review the instructions for creating the field name.

+ [Set Organization-Wide Defaults and Create a Role Hierarchy](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000KghmB)

:::note
Issue is resolved after changing the field level Accessibility for the field 'Status' to be visible to System Administrator.

- Click on the field Status from Fields & Relationships Page

- Click 'View Field Accessibility'

- Select 'Status' from 'Field accessibility for Field ' dropdown.

- Check 'System Administrator ' Field access. If it is 'Hidden', click on 'Hidden' , it will take you to another page . Select 'Visible' checkbox under 'Field Level Security'. 


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

# We can't find the expected picklist values on the Close Reason multi-picklist field.

+ [Does anyone know how to restart a project? I totally messed up and I have no clue where i went wrong. I am very new to trailhead, doing assignments for a class. I would appreciate any help!](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000Kggtu)

:::note
It went well after I  deleted field and created it again. 

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

# We couldn't set up your subscription.  Try subscribing again.  If you still can'r subscribe, ask your Sales admin for help

+ [Add recipient to a Report Subscription](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000Kfe5b)

:::note
1. From Setup, enter Report Notifications in the Quick Find box, then select Report 2. Notifications.
2. Select the option to enable report notifications.
3. Click Save.

Let Users Subscribe to Report Notifications
https://help.salesforce.com/s/articleView?id=xcloud.customize_reports_and_dashboards_report_notifications.htm&type=5

1. From Setup, enter Notifications in the Quick Find box, then select Salesforce Notifications.
2. Select the notification types you want to enable.
3. Click Save.

Enable Salesforce Mobile App Notifications
https://help.salesforce.com/s/articleView?id=xcloud.salesforce_app_notifications_enable.htm&type=5
:::

# We can't find the Preferred Language fields mapped.

+ [We can't find the Preferred Language fields mapped.](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000J78ZQ0AZ)
+ ["We can't find the Preferred Language fields mapped." Health Cloud](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000KhJjo)


:::note
Referencing the "technical API names" of the values is the key. At first glance, this is not obvious, but paying careful attention to the field name in Setup, is how it must be typed in exactly. Thanks, Keiji Otsubo & Andrew Russo, for helping me understand. Hope this helps. Also, confirm Source field & Target field relationship being mapped (see, step 3.). 

Example: Type Pref [and 1 underscore], followed by Lang [and 2 underscores with no spaces], followed by lowercase c

   Pref_Lang_ _c  =  Pref_Lang__c  

   Preferred_Language_ _c  =  Preferred_Language__c

(1.)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/fb789b63-84f0-78ff-aef5-4fad5c51592f.png)
(2.)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/18a3f9e6-a67f-ca31-4683-595d15e6f1f7.png)
(3.)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/5b9e7b56-e729-8c0d-5f88-7b5f2df973eb.png)



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

# You don’t have access to any other Opportunity record types. Contact your Salesforce administrator for help.

+ [Error on Customizing Sales path](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000KCLiL)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/63d26a4e-809a-9ef2-5daf-dba6863701b1.png)

:::note
Have you checked that you've enabled the 'B2B Business' Record Type for the Standard User and System Administrator profiles? 


Go to Setup>Profiles and then check both profiles. You'll have to scroll down a bit, but you should see which record types are available for the respective profile. 

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