2024年03月の質問の中から整理します

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

先月も回答しても無反応が多いなぁ。

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

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

[2024年03月未解決の質問](https://qiita.com/Keiji_otsubo/items/7aa396cfe8e4687adc8a)

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

+ [ the restricted IP only appears when a password reset is processed](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007ZBVJL)

+ [The ‘Opportunity Stages’ report is not grouped correctly.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007Yw89z)

:::note
I faced the same problem as described above . What I noticed in my case was that I already had a report with the same name "opportunity stages" which I had created while completing another challenge . Renaming the latter cleared the challenge for me 

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

私も上記と同じ問題に直面しました。私の場合、別のチャレンジを完了するときに作成した、同じ名前の「機会ステージ」のレポートがすでに存在していることに気づきました。後者の名前を変更することで、私にとっての課題は解決されました
:::

+ [If you're working on a screen component, check your component configuration for invalid values.Uncaught TypeError: Cannot read properties of null (reading 'setCustomValidity') ](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007ZB9KY)

:::note
I appreciate your help. Actually I was getting the error due to some JS code ingestion browser extension that I was working on. Switching to another browser helps me.

私はあなたの助けに感謝します。実際、私が取り組んでいた JS コードの取り込みブラウザ拡張機能が原因でエラーが発生していました。別のブラウザに切り替えると助かります。
:::

+ [ Mechanical, Electrical and Structural がない](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007XIbo7)


# Won List View

+ [Error message when completed challenge in Work with List Views](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007ZBmI1SAL)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/05171cc4-fd85-bb63-e02b-828c487406a6.png)


:::note
Thank you. I discovered I created 2 lists with the same name (Recently Won) After I deleted one of them, I was able to complete the challenge.

ありがとう。同じ名前のリストを 2 つ作成していたことがわかりました (最近勝った) そのうちの 1 つを削除した後、チャレンジを完了することができました。
:::

# Couldn't resolve host. Make sure the domain is publicly accessible or select a different agent.

+ [Cloud Agent Error: Couldn't resolve host. Make sure the domain is publicly accessible or select a different agent.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007agXKjSAM)

:::note
The endpoint url we need to paste is in Current Value. I had also posted in first column instead of Current Value (Second column). Upon correcting this I was able to complete the step without any error. Hope this helps anyone encountering same error doing the challenge. 

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

貼り付ける必要があるエンドポイント URL は「現在の値」にあります。また、現在値 (2 列目) の代わりに 1 列目に投稿していました。これを修正すると、エラーなしで手順を完了できました。これが、チャレンジ中に同じエラーに遭遇した人に役立つことを願っています。
:::

# We could not find an account named 'Bluebeards Coconut Milk House' created using SoapUI with the Description 'It is better than Blackbeards.'

+ [We could not find an account named 'Bluebeards Coconut Milk House' created using SoapUI with the Description 'It is better than Blackbeards.'](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007agYYF)

:::note
I have faced the same problem, and that was solved after I put a dot at the end of the description. As it was checking the description as "It is better than Blackbeards." so I suggest you edit the description and put a dot at the end and save the record.Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.

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

私も同じ問題に直面しましたが、説明の最後にドットを入れたら解決しました。説明を「黒ひげよりも優れています。」とチェックしていたので、説明を編集して最後にドットを入れて記録を保存することをお勧めします。私の返信が役に立った場合は、私の解決策をベストアンサーとして受け入れてください。適切なソリューションとして他の人が利用できるようになります。私が期待以上のことをしたと感じたなら、称賛を与えていただけます。
:::

# Lighting App Builder > Build an App Home Lightning Page

+ ["New Account" action button does not](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007XIR9B)

:::note
 I had the same issue when trying to finish this module.  If you search for and select "Global Actions" in the Quick Find box, you will see a list of global actions with your "New Account" listed. Click onto "New Account" and it will take you to a details page (1st image). At the top next to Action Detail, click the Edit button. Change the Standard Label type to "B2B New Account". My issue occurred with the "New Opportunities" action, so that is what you will see a screenshot of below. Originally, my record type was set to "Master", but once I changed it to "B2B Opportunities" I was able to the see the button added to the top of the "Top Accounts and Opportunities Page" (2nd image). Hope this helps!

 ![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/1920170f-8a03-887c-97fc-b9441fe8630f.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/b25a42c6-c552-285c-6ac1-b126471f77c6.png)


:::

# INVALID_ID_FIELD, ID is invalid or you do not have access to the record.: [toAddresses, Your email address] Class.EmailManager.sendMail: line 13, column 1

+ [Not sure why I am getting this error for trailhead 'Use Lightning Data Service to Work with Data'](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007agf7J)

:::note
 I deleted that example trigger and then it worked. 
:::

# リモートアクションのコールバックが安定して動作しない

+ [リモートアクションのコールバックが安定して動作しない](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007ZC1Vf)

:::note
結局どうにもならなかったのでapex:actionFunctionに切り替えたところすんなりいきました。
:::

# Trailhead Challenges Visual Force

+ [#Trailhead Challenges Visual Force](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007XIAJC)


:::note alert
```
Uncaught TypeError: Cannot read properties of undefined (reading 'setParams')
at <anonymous>:1:34
```
:::

:::note
To Execute this module, I used Chrome browser in Lightning Experience.

1) Created VF Page in Developer Console

2) Created Custom Tab (Switch to Lightning Experience if you are in Classic)

3) Exeucte the commond in Developer Tool Console
$A.get("e.force:navigateToURL").setParams( {"url": "/apex/pageName"}).fire();
pageName = your VF Page Name (HelloWorld) (remove .vfp).

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


# The rejection is not configured correctly for 'Discount Approval Process'. VP rejection of the opportunity did not result in either the Approval_Status__c being set to 'Not Approved' or the Discount_Percentage__c being set to null.

+ [rejection is not configured correctly for 'Discount Approval Process'.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007YwMWbSAN)

:::note
Check some discussions:

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

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


# This feature is not currently enabled for this user

+ [I am getting "This feature is not currently enabled for this user" when activating an Order while Activate Orders is enabled for this user](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007agyLR)

:::note
The Permission Set was missing the Use Ordermanagement API setting. That solved it.
:::

# It looks like you have not selected an Einstein generative AI-enabled org to validate. Be sure to sign up for an org, connect it to Trailhead, and choose it before validating.

+ [Connect Your Trial Org to Trailhead](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007YwX7rSAF)

:::note
I think you are validating the Trailhead playground. You must complete the steps in the dedicated org with the AI features enabled and validate from that dev org. 

You can register for 5 days trial org via this link - https://mcp76yxhtx84crlrk45yhv6lcsby.pub.sfmc-content.com/aha3qbdjy5j 
:::

# Could not find a user with Chat Agent Permissions error

+ [Could not find a user with Chat Agent Permissions error](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007XIBQk)

:::note
I created a new Org and completed the tasks successfully. 
:::


# We’re having trouble with call monitoring right now Salesforce Exception

+ [Supervisor barge in feature throws error](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007ZBhGC)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/ae5a0527-9e95-7596-6540-364d053205c4.png)

:::note
Resolution:

This exception is thrown when the Omni-Channel Supervisors tries to listen in to a voice calls.

To resolve the issue, please make sure the Omni-Channel Supervisors have the following permissions in Salesforce and Amazon Connect.

Salesforce Permission Sets:

1. Contact Center Agent (Partner Telephony) OR Contact Center Agent
2. Contact Center Supervisor
3. Contact Center Admin

Amazon Connect Permission:

UI Name: Real-time contact monitoring – Enable/Disable should be checked for Listen In

API Name: ManagerListenIn

https://www.infallibletechie.com/2024/02/were-having-trouble-with-call-monitoring-right-now-salesforce-exception.html
:::


# sForce account がない

+ [Where is the sForce account?](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007ahKu3)

:::note
Create the account or try our new playground

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/adcbdc50-0d43-c40d-55b9-01e4f4806419.png)
:::

# Create Service Document -- We can't generate your PDF. Try again later.

+ [Unable to generate PDF error](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007agU1f)

:::note
In reality, there are three permission sets, perhaps you missed adding the "Field Service Document Builder Dispatcher" permission?

This one "Gives dispatchers access to create Service Documents in the desktop application and assigns one Field Service Dispatcher license to the user".
:::

# {"entityApiName": "Event" ,"defaultFieldValues": {"WhoId" : "#parentrecordId#"}, "defaultFieldValues" : {"WhatId":"001************"}}

+ [Facing Issue in Sortable Data Grid](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007YwWou)


:::note
You might wanted to check this similar question on this link below :

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

# org.opentest4j.AssertionFailedError: Unexpected exception thrown: com.sforce.ws.SoapFaultException: INVALID_TYPE: This type of object is not available for this organization at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:152)

+ [Salesforce: Upload Apex Trigger via Java](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007YwWuT)

:::note
Maybe this link will help

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



# An Apex error occurred: SendBetterEmail.InvocableActionException: No Messages were sent. First Error: You're trying to pass in both a plaintext/html body and a template ID. Gotta pick one or the other. Make sure you're not confusing the Text Template resources in Flow, (which you can pass into either the HTMLBody or the plainTextBody) with the templateID, which represents a Salesforce Email Template (either Classic or Lightning).

+ [SendBetterEmail not working - Getting Error](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007ZBxO4)

:::note
Please check this article.

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


# We can't find the 'candsFromTrigger' input parameter in the 'createContact' method.

+ [We can't find the 'candsFromTrigger' input parameter in the 'createContact' method.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007ahqjE)

:::note
Try this
 
```Java
trigger CreateContact on Candidate__c (before insert) { 
    CreateContactFromCan.createContact(Trigger.new); 
} 
```

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


# In the Type is Structural, Contact is VIP test, we can’t find the triggering record’s Contact Name set to 'Jane Grey'

+ [Challenge not yet complete in Authentication Playground In the Type is Structural, Contact is VIP test, we can’t find the triggering record’s Contact Name set to 'Jane Grey'. Getting this error in Flow Implementation I](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007Ywaey)

:::note
Needs to change Jane Grey's contact description to VIP, save it, and test the challenge to ensure it works.
:::


# System.CalloutException: The callout couldn't access the endpoint. You might not have the required permissions, or the named credential "Lote_de_pagamento" might not exist.

+ [System.CalloutException: The callout couldn't access the endpoint. You might not have the required permissions, or the named credential "Lote_de_pagamento" might not exist.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007CIwSv)

:::note
If anyone is here pulling their hair out trying to fix this remember that the default setting for "User External Credentials" is "No Access." It's an object. So make sure that the profiles who need access to that endpoint have access to the object first, before enabling the external credential. 

この問題を解決しようとして髪を引っ張っている人がいる場合は、「ユーザー外部資格情報」のデフォルト設定が「アクセスなし」であることを思い出してください。それはオブジェクトです。したがって、外部認証情報を有効にする前に、そのエンドポイントにアクセスする必要があるプロファイルがオブジェクトにアクセスできることを確認してください。
:::

+ [SalesforceIQ](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007ahVzv)

:::note
Salesforce Inbox サービスに関連する接続アプリケーションであり、Inbox 固有のタスクを実行するために Salesforce ユーザのアカウントにリモート アクセスしていることがわかりました。
:::