LoginSignup
0
0

Automate Business Processes for a Recruiting App

Last updated at Posted at 2023-06-19

Build an Automation for Creating Interviewer Records Learning Objectives

新しいプレイグランドで試すために、以下のパッケージだけをインストールしてみました。

Every_Position_Must_Have_a_Hiring_Mgrの入力規則の非アクティブ化ができないだけで、他は問題なく実行できました。

これは作ってないパターンみたい

Have you followed the instructions below to create your validation rules?
(However, omitting this part does not affect the challenge.)

Set Up the First Rule

First create a validation rule requiring a hiring manager be included with each position listing in the recruiting app.

  1. From Setup, click Object Manager and select Position.
  2. Click Validation Rules, then click New.
  3. For the Rule Name, enter Every_Position_Must_Have_a_Hiring_Mgr
  4. Select Active.
  5. Enter this Description: Every position record must have a hiring manager.
  6. Enter the Error Condition Formula:ISBLANK (Hiring_Manager__c) && $Profile.Name <> "System 7. Administrator"
  7. Ensure your screen looks like this:
  8. Click Check Syntax to verify there are no errors.
  9. Enter this Error Message: Every Position must have a Hiring Manager.
  10. Choose Field: Hiring Manager from the Error Location picklist.
  11. Click Save.

https://trailhead.salesforce.com/content/learn/projects/improve-data-quality-for-a-recruiting-app/create-validation-rules

エラー

Is the Interviewer object configured like this?
image.png

Mistakenly My employee field is lookup to another object.

フローが間違っていると思ったけど、フィールドの参照先がPositionでなくて、ユーザになっていたようです。

The User object's Id starts from 005.
You should delete this wrong field and recreate it.

However, I don't think you can remove it if you're using it in a flow. Remove the flow or just the part that uses this field

We can't save this record because the “Create Interviewer Record” process failed. Give your Salesforce admin these details. This error occurred when the flow tried to create records: MALFORMED_ID: Employee: id value of incorrect type: $Record > Hiring_Manager__c. You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 755069656-1671511 (-758799955)k up ExceptionCode values in the SOAP API Developer Guide. Error ID: 755069656-1671511 (-758799955)

image.png

I was working on Recruiting module, my issue was resolved after giving Id

({!$Record.Hiring_Manager__r.Id}

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

image.png

I was working on Recruiting module, my issue was resolved after giving Id

({!$Record.Hiring_Manager__r.Id}

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

私は採用モジュールに取り組んでいましたが、この値を使用した後に問題が解決されました

I was working on Recruiting module, my issue was resolved after using this value

({!$Record.Hiring_Manager__c}

image.png

This is the error message when running the flow.
『Error element Create_Interviewer_Record (FlowRecordCreate).
This error occurred when the flow tried to create records: MALFORMED_ID: Employee: id value of incorrect type: $Record > Hiring_Manager__c. You can look up ExceptionCode values in the SOAP API Developer Guide.』

上記と同じでは?

Lay the Groundwork for an Approval Process

image.png

Finally was able to resolve this. Looks like while creating. Looks like while creating the Action Element even though the Label correctly entered as was Submit Position for Approval for some reason the API name was defaulting to Submit and the validation was looking for the API name as Submit_Position_for Approval instead of just Submit.

Edited the API name and it successfully marked as compete.

Create a section named "Approver" in the "Technical Position Layout" (under the "experience & education") and move the approver fields into that section as you did in the "Position Layout". So both layout will have the section named "Approver" with similar fields.

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

「技術職のレイアウト」(「経験と学歴」の下)に「承認者」という名前のセクションを作成し、「職位のレイアウト」と同様に、承認者のフィールドをそのセクションに移動します。したがって、どちらのレイアウトにも、同様のフィールドを含む「承認者」という名前のセクションが含まれます。

意味が分からない

image.png

I am not able to create employee object by using lookup relationship and also i am not able to delete the object and create it once again.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0