• About
  • Contact me!

Salesforce Everywhere

~ Blog on Salesforce Dev and admin stuff

Salesforce Everywhere

Tag Archives: Account Validation

Validating accounts

09 Friday Oct 2015

Posted by Mani in Salesforce Configuration

≈ Leave a comment

Tags

Account Validation, Validate accounts

In this post, I will explain about Validating accounts in Salesforce and how I have implemented it using Process Builder.

Requirement:

Accounts need to be validated by Sales Manager(Office Manager) once the account is created by Sales Rep.
There should be 2 custom fields created: Validated(Checkbox) and Validated by(Lookup to User). Validated flag need to be editable only by Sales Manager, Validated by should be read only and auto populated by the system(with the user who is checking Validated checkbox).

Implementation:

I created the custom fields as mentioned above in Accounts Object.I have given view access to those fields at the profile level only for System admin, but in Sales Manager/Office Manager permission set, I have provided R/W access for Validated checkbox and Read access for Validated by fields.

Once the user tick the Validated flag, process will be called and it will update the lookup field Validated by. Screenshots are attached below:

Process

First step

Process should be called only when Validated flag is updated and ticked:

second step

Update Validated by field using Update Records action and update Validated by field using Reference with LastModifiedbyId field:
third step

If the Validated flag is unchecked, clear the Validated by field:
Fourth stepLast step

Also, we created a list view in Accounts object for the Sales Manager which will show all the accounts that are not validated.

Moreover, we have updated Validated flag to Y and Validated by to the Sales Manager user Id for all the existing account records by using Dataloader.io tool. We inactivated the process when we ran the update else process would throw the error “Too many SOQL queries: 101”. I have discussed about this error in the post https://getintosalesforce.wordpress.com/2015/10/09/tip13-process-builder-bulkfied/.

Advertisement

Blog Stats

  • 114,773 hits

Archives

Recent Posts: Salesforce Everywhere

How to get field values on onLoad in lightning-record-edit-form in LWC?

Using Dynamic Actions

How to check if the logged in user is a Guest user or not in APEX class?

How to Close Quick action in LWC

Lightning component to filter Products and display results in lightning data table

Connect with me

  • View @manibalan_s’s profile on Twitter
  • LinkedIn

Developer links

  • Salesforce Developer website
  • Salesforce Success Community

Enter your email address and click on Follow us (below) to follow this blog and receive notifications of new posts by email.

Website Powered by WordPress.com.

  • Follow Following
    • Salesforce Everywhere
    • Already have a WordPress.com account? Log in now.
    • Salesforce Everywhere
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar