Customize How Records Get Approved with Approvals  


[Trailhead関係　個別の課題別に戻る](https://qiita.com/Keiji_otsubo/items/56eb7a90bb72138ece1f)


[承認でレコードが承認される方法をカスタマイズする](https://trailhead.salesforce.com/ja/content/learn/modules/business_process_automation/approvals)

# We expected the request to be approved, but it was rejected. Make sure your entry criteria are Account: Type equal to 'Prospect' and Account: Employees is greater than '500'.

オブジェクトが間違っていたようです。正しくはAccountに設定しないといけません
[Hi Team. I am getting the following error .](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000FTvbX)

詳細の解説あり。これでいいはず
[レコードが承認トレイルで承認される方法のカスタマイズを実行している間](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000E9iKKSAZ)

**回答例**
+ [Error Message: 'Build an Approval Process'](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000NPtjD)

:::note
I found that when I first created a new approval I selected the wrong object. Theres a drop down to select Account object at the very start of the process. It's not something you can change later on. What I did was change the Label Name and deactivate the approval and started a new one.

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

Please watch the below video and verify your steps and understand where you missed something.

https://www.youtube.com/watch?v=fC_J9LLZNeo

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

+ [【意味不明】can someone assist with the following challlenge.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007DgHpu)

# We submitted an account for approval, but we can't find that account's Type set to 'Pending'.

+ [このページと同じ](https://qiita.com/Keiji_otsubo/items/5ff74d57829abc72e7bd)
+ [承認プロセスの課題](https://trailhead.salesforce.com/en/trailblazer-community/feed/0D54S00000H1O8J)

+ [this is my problem We submitted an account for approval, but we can't find that account's Type set to 'Pending'.](https://trailhead.salesforce.com/en/trailblazer-community/feed/0D54S00000JeiXr)

:::note
I had the same issue and I resolve it. You have to pay close attention to the first part of the challenge. It stated this:

Before You Start Go to Object Manager. In Fields and Relationships for the Account object, check the Type field’s picklist values for Prospect, Customer, and Pending. Add any of these values that are missing.  Please follow these steps: 

1. In setup, Click Object Manager >Account >Fields and Relationships
2. Search for TYPE field in the Quick Finder & Click Type
3. Under Account Type Picklist Values, Disactivate all of the other values except for PROSPECT & add Pending and Customer values (see attachment image) 

Once done, make sure you go back to your approval process and select the picklist values you just create.
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/364e0c59-feba-f693-0cfa-a41b6374df2a.png)


**PLEASE FOLLOW THESE STEPS**
5. Type Approval  in the quick finder > Click Approval Processes 
6. Click Edit in your current approval process (Approve New Account)
7. Click Next twice > Save
8. Click Edit in Initial Submission Actions > Choose Pending Value for Picklist Options > SAVE

Note: Keep in mind, that you might have to do the same for Final Approval Actions.

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

+ [showing error on hands on challenge](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007KXgSx)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/8fe2f7d8-3785-704f-32f9-4bd1e77b9444.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/66085d2c-8d39-95b3-dbdb-192cc2dbf21c.png)

Pending, not pending. "P"


+ [Challenge not yet complete in My Trailhead Playground 1 We submitted an account for approval, but we can't find that account's Type set to 'Pending'.](https://qiita.com/Keiji_otsubo/items/5ff74d57829abc72e7bd)

:::note
In this error the fault in my spelling i give punctuation mark thats why th error occured ....
:::

+ [getting some error in : Approve Records with Approval Processes Build an Approval Process](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007X6J26SAF)

:::note
 I opened a new playground org and was able to complete the challenge succesfully. 
:::



 

# Theres no pending value

+ [Build an Approval Process](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000NQYaWSAX)

:::note
Goto Setup > Object Manager > Account.

Click the item and relationship in the account, and click the type field.

Check if there are Prosect, Pending, and Customer in the account type picklist value in it.

If not, create one from New button
:::