Build a Discount Approval Process > Create Initial Submission Actions

案外よく見かける質問ですが、解決方法はよく分からないですね。

+ [Create Initial Submission Actions](https://trailhead.salesforce.com/content/learn/projects/build-a-discount-approval-process/create-initial-submission-actions)

# The 'Discount Approval Process' did not successfully submitted an opportunity for approval when the discount percentage was set to greater than 0.


**正解の設定**

+ [Create Initial Submission Actions](https://trailhead.salesforce.com/en/trailblazer-community/feed/0D54S00000A8nRpSAJ)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/07b4ead1-f807-ec87-947d-b33cbcd55e75.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/1baf364d-0a9e-e07a-264c-d11c31352d67.png)


**Two checkpoints are mentioned.**
+ チェックポイント1

[The 'Discount Approval Process' did not successfully submitted an opportunity for approval when the discount percentage was set to greater than 0.](https://trailhead.salesforce.com/en/trailblazer-community/feed/0D54S00000DwX6QSAV)

あなたのユーザー レコードでは、マネージャールックアップ フィールドでレポート マネージャーとしてCourtney Brownが選択されていないようです。これについては、Courtney Brown ユーザーを作成した後 の最初の単元「組織の準備」で説明しました。

以下で同じものを見つけてください。

あなたはコートニーに報告することになるので、彼女をあなたのマネージャーにしてください。

[設定] から、[クイック検索] ボックスに 「ユーザー」 と入力し、[ユーザー] を選択します。
1. 名前の横にある[編集] をクリックします。
2. [承認者の設定] で、[マネージャー] フィールドの横にあるルックアップ アイコンをクリックし、Courtney Brown を検索してから、彼3. 女の名前をクリックします。
4. [保存]をクリックします。

It seems in your user record, a Manager lookup field is not selected Courtney Brown as your reporting Manager and this has been discussed in the first unit "Prepare Your Org" after creating the Courtney Brown user. 

Please find the same below:

You’ll be reporting to Courtney, so make her your manager.

1 .From Setup, enter User in the Quick Find box, then select Users.
2. Click Edit next to your name.
3. Under Approver Settings, click the lookup icon next to the Manager field and search for Courtney Brown, then click on her name.
4. Click Save.

+ チェックポイント2

Discount Percentという名前で作成された別のカスタム フィールドがあり、承認プロセスのエントリ基準で選択されているようです。割引率フィールドに変更したところ、チャレンジが期待どおりに機能するようになりました。

 It seems there is another custom field created with the name Discount Percent and it was selected in Approval Process Entry Criteria. I have changed it to the Discount Percentage field and now the challenge is working as expected.


# The 'Discount Approval Process' did not successfully submitted an opportunity for approval when the discount percentage was set to greater than 0.

+ [Step not yet complete in Resourceful Panda Playground There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, R](https://trailhead.salesforce.com/en/trailblazer-community/feed/0D54S00000BrxtWSAR)

指示通りの設定ができていなかったようです。

Did you make this setting?
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/53309c8f-7b7e-0245-1051-b2af116c6280.png)

+ [I'm having an issue to complete the "Create Initial Submission Action" task in Build a Discount Approval Process badge. Keep having the error below:](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JffqS)

```
Opportunity: Discount Percentage GREATER THAN 0
Opportunity: Discount Percent GREATER THAN 0
```

:::note
Just found the issue. Instead of "Opportunity: Discount Percentage GREATER THAN 0", I was using the " Opportunity: Discount Percent GREATER THAN 0". Solved now. :)
:::



**類似の質問**

[Create Initial Submission Actions Error](https://trailhead.salesforce.com/en/trailblazer-community/feed/0D54S00000FSnBxSAL)
+ [Create Initial Submission Actions Issue](https://trailhead.salesforce.com/en/trailblazer-community/feed/0D54S00000LGDEZSA5)
+ [Create Initial Submission Actions Issue](https://trailhead.salesforce.com/en/trailblazer-community/feed/0D54S00000LGDEZ)
+ [Has someone come across this error? "The 'Discount Approval Process' did not successfully submitted an opportunity for approval when the discount percentage was set to greater than 0"](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000PjrYU)

:::note
I found out why I was coming across this error. Make sure you select "Opportunity: Discount Percentage" and NOT Opportunity: Discount Percent". I had that latter and was getting that error
:::

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/8ded70a1-2991-52ca-0f0a-8de2e7b0bada.png)

+ [2023-12-21 The 'Discount Approval Process' did not successfully submitted an opportunity for approval when the discount percentage was set to greater than 0.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007UQ1vv)

:::note
Please check this article.

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

+ [The 'Discount Approval Process' did not successfully submitted an opportunity for approval when the discount percentage was set to greater than 0](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007UsCpF)

:::note
 I deleted the Discount Approval Process and configured it again and it was a success. 
:::


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

#  it seems the issue was due to the field Discount Percentage not being visible to the System Administrator profile.

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

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/d3cb6541-593d-03ca-6dea-5d3d5215e5c3.png)


# Discount Percent --> Discount Percentage

+ [Getting error "The 'Discount Approval Process' did not successfully submitted an opportunity for approval when the discount percentage was set to greater than 0."](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007T52Bq)

:::note
It seems there is another custom field created with the name Discount Percent and it was selected in Approval Process Entry Criteria. I have changed it to the Discount Percentage field and now the challenge is working as expected.

Discount Percent --> Discount Percentage

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/4cd693cd-11de-df78-dd9d-bb2619491175.png)
:::

# ずっと放置してましたが、自分でもやってみたら...

:::note alert
We couldn’t find an active Approval Process with the correct information. Please double check the instructions.
:::

プレイグランドのロケーションが日本で作られたので姓名の順序がおかしかった。修正したけどまだエラーです。


まだ続きがあったから有効化してなかった... 有効化したら合格

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/2d6a53a6-dcaa-43b6-bb25-845f7c8bd35f.png)