モジュール Record-Triggered Flows  

[Record-Triggered Flows  ](https://trailhead.salesforce.com/ja/content/learn/modules/record-triggered-flows?trailmix_creator_id=strailhead&trailmix_slug=wt23-automate-with-flow)

この環境で実施　otsubo@wise-shark-ci0xb3.com

# Build a Record-Triggered Flow

+ 何もしないで検証ボタンを押した場合

**We can’t find a flow with 'Review Opportunity with Account Owner' as the label and 'Review_Opportunity_with_Account_Owner' as the API Name.**

+ 説明されているフローを完了した後に検証ボタンを押した場合

**We can’t find a flow with 'Review Opportunity with Account Owner' as the label and 'Review_Opportunity_with_Account_Owner' as the API Name.**

このモジュールは説明は関係ないみたい

+ とりあえず基本部分まで入力して保存した場合

**In the 'Review Opportunity with Account Owner' flow, we can’t find a 'Create Records' element with 'Create_Email_Task' as the API Name.**

+  名前を間違えた

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/bf5f3fde-45b2-9d77-eee2-b0f8dc98c02d.png)

**In the 'Review Opportunity with Account Owner' flow, we can’t find a 'Create Records' element with 'Create_Email_Task' as the API Name.**

+ 何で？

**In the 'Create Task' action, we can’t find the 'OwnerId' field set to the owner of the Opportunity that triggered the flow.**

UserIdまで選択したから？

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/04a6861f-0729-bd38-c34d-0a46f4afc45f.png)

何だろうなぁ

``` 
The field "OwnerId" isn't compatible with the SObject element "$Record". "$Record" can't be a SObject.
```

こんなエラーまで...

If you're working on a screen component, check your component configuration for invalid values.
Uncaught Error: Element must be non empty object but instead was undefined throws at

下の選択肢を選ぶ

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/69cc89a5-1911-f328-87c4-c1b709491e19.png)


+ [I have an issue regarding build record trigger flow](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007DvD3q)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/c84c33cd-942c-0395-3b9e-ecd6feafa25f.png)

:::note
I was having the same issue, and I believe I figured it out.

While you're choosing a value, you first click on $Record (It references opportunity underneath) and it has a picture of a globe next to it. Then you have to scroll down to click on the OwnerID that has the symbol Aa next to it. For it to work properly. You also have to do the same thing for the WhatId Value as well.

I'm still learning the exact terminology, but I believe the first OwnerID and AccountID options that show up (that don't have an icon to the left of the name) are considered field options and not values. The OwnerID and AccountID options that show up with the icon Aa next to them, are considered value options and can be used as values in this context.

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


+ 最終形

不思議なことに有効化しなくてもエラーにはならなかった

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/99a643e6-7a1c-2767-e096-ff190e3f6b5a.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/f1bbf587-d647-2769-0102-0cffa8628f7b.png)


### トレイルヘッドの質問

+ [I can't find the Review Opportunity with Account Owner flow in my trailhead. I created a new version but system is telling me the original is there.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007ifmUV)

:::note
I changed the API name of my replacement to something different; I was then allowed to keep the name the same, even though I was told there was a duplicate, and having done that, I was able to successfully pass the review and move on.  
:::

# Add a Scheduled Task to Your Flow

+ 何もしないで検証ボタンを押した場合

**In the 'Review Opportunity with Account Owner' flow, we can’t find a Path with the API name 'X3_Days_After_Last_Modified_Date'. Make sure you saved the changes in your flow.**

### トレイルヘッドの質問

+ [In the 'Create Phone Call Task' action, we can't find the 'OwnerId' field set to the owner of the Opportunity that triggered the flow](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007erYgo)

:::note
$Record > OwnerId is assigned to another field.

WhoId --> OwnerID

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/313e3a07-5f7f-6920-4e0b-3f0b30b045cd.png)
:::

# 未分類

+ [ In the 'Create Task' action, we can’t find the 'WhatId' field set to the Account that’s related to the Opportunity that triggered the flow.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000IRMmESAX)

:::note
Make sure your WhatId is $Record>Account Id  not  $Record>Account>Account Id

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/929d8a8d-197e-9c9a-c440-64c22e204e9c.png)
:::

+ [we can’t find the 'WhatId' field set to the Account that’s related to the Opportunity that triggered the flow](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007GIWin)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/9c151e64-bac8-584c-b53a-c4415d14d068.png)

:::note
I think there are two OwnerIds. Please try using the one below.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/7b587506-618d-53e4-5ba5-079712bf5815.png)
:::



# In the 'Create Task' action, we can’t find the 'WhatId' field set to the Account that’s related to the Opportunity that triggered the flow.

+ [In the 'Create Task' action, we can’t find the 'WhatId' field set to the Account that’s related to the Opportunity that triggered the flow.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JeTd6SAF)

# In the 'Create Task' action, we can’t find the 'OwnerId' field set to the owner of the Opportunity that triggered the flow.

+ [In the 'Create Task' action, we can’t find the 'OwnerId' field set to the owner of the Opportunity that triggered the flow.](https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX000000Tlwn0AC)