• About
  • Contact me!

Salesforce Everywhere

~ Blog on Salesforce Dev and admin stuff

Salesforce Everywhere

Category Archives: Salesforce Configuration

Duration of the events in the Salesforce calendar can’t go beyond 14 days

15 Tuesday May 2018

Posted by Mani in Salesforce Configuration, Uncategorized

≈ Leave a comment

Tags

Calendar event

I have faced this issue recently in my current project [Later on, I realized that I was aware of this issue earlier perhaps 3 yrs ago when I was working in the consulting firm, my bad memory:)]. The requirement is to create the calendar event when the record is created in one of our Custom object based on the start and end date fields in it.

I created a process builder and it gets triggered when the new record is created in the Custom object. Immediate action in the process builder is to create a record in Event object.

It works fine when the difference in start and end date is less than or equal to 14 days (duration of the event is less than or equal to 14 days) else it throws an error ”

Vote for the below idea so that salesforce removes this limit in the calendar event:

https://success.salesforce.com/ideaView?id=08730000000Guw6AAC

Workaround: I created a flow to create events based on the start and end date. Suppose, start and end date span for 6 months(Start date=15/5/2018 and End date=15/11/2018), split them into 14 days and create events accordingly. So, in this case, I would have created 13 event records approximately from 15/5/2018.

Please comment below for any questions on this.

Tip # 25: Error in creating Lookup relationship

29 Sunday Apr 2018

Posted by Mani in Salesforce Configuration, Uncategorized

≈ Leave a comment

Tags

Lookup fields

Recently, when I tried creating a lookup relationship with the Product (Standard Object) from the custom object, I got the below error though I was not trying to create the Master Detail relationship:

You cannot create a new Master-Detail relationship on an existing custom object if records already exist. You must first create a Lookup relationship, populate the lookup field with data in all records, and then change the relationship type to Master-Detail.

Moreover, the custom object was a new object and it did not have any records. I was bit confused and the error message is misleading as well. Then, after googling, it looks like you can create a lookup field to Product only if you allow to clear the field if the Product record is deleted(please check the below screenshot for your reference):

Lookuperror

Please let me know for any clarification.

Tip# 22 – Rowsperpage

01 Saturday Apr 2017

Posted by Mani in Salesforce Configuration, Uncategorized

≈ Leave a comment

Tags

changeset

Many of us would know this tip, but I thought of sharing it as it will be useful for someone who does not know about it.

Suppose you want to add a field “Available To” from the Product object on to the changeset, so you would click on Add button, select Custom field in the drop down and click on A. Then you would click on next page and select the field “Available To” .

Instead, you can click on more records per list page and go to end of the address to look for “rowsperpage”:

Rowsperpage

Change it to lets say 2000 and click on enter, in this way, you don’t need to navigate to next page to select the field:

Rowsperpage-LATER

Let me know for any questions.

 

Tip#20 -Restricted Picklists

22 Sunday May 2016

Posted by Mani in Salesforce Configuration, Uncategorized

≈ Leave a comment

Tags

data integrity, restricted pikclists

A restricted picklist field includes only the values that you’ve defined and users cannot enter any value other than the defined picklist values. This is to ensure that the integrity of the picklist data is maintained and your picklist stays clean. Salesforce has introduced this functionality in Spring’16 and it is in Beta.

If you have a Developer Edition org or sandbox org, no setup is required to use restricted picklists. For all other editions, restricted picklists are available as a beta feature, which means they’re highly functional but have known limitations. Contact Salesforce to enable restricted picklists.

Suppose, you have configured a restricted picklist in Sandbox and when you move it to production, you might get an error “Cannot have restricted picklists in this organization.” To resolve the issue, you can contact support to enable restricted picklists in production org.

Here you can find the release notes from Salesforce.

More fields in related lists

17 Tuesday May 2016

Posted by Mani in Salesforce Configuration, Uncategorized

≈ Leave a comment

Tags

fields in related lists, related list

Want to display more than 10 fields in related lists?

There is a nice hack by Chris Tzompanakis and it is in the link

Have a nice day!

Salesforce Workbench

05 Thursday May 2016

Posted by Mani in Salesforce Configuration

≈ Leave a comment

Tags

Workbench

Want to know more about Workbench tool? It is quite an useful tool and Atul Gupta has written a nice article on Workbench tool..Check it out at here

Extract Controlling and Dependent picklist values

01 Friday Apr 2016

Posted by Mani in Salesforce administration, Salesforce Configuration, Uncategorized

≈ Leave a comment

Tags

controlling picklists, dependent picklists, extract controlling and dependent picklist values

If you ever want to print or extract Controlling and Dependent picklist values, you can use the solution highlighted by Kenny Jacobson: 

here is the link

I had to use it in my current project to check the field dependencies for 2 picklist fields and make modifications accordingly.

Salesforce Developer Cheatsheets

08 Tuesday Mar 2016

Posted by Mani in Salesforce Configuration

≈ Leave a comment

Tags

Cheat sheet

There was an article about Salesforce Developer Cheatsheets in Salesforce Developers/Contractors linkedin group and here is the link where you can download them:

Salesforce Developer Cheatsheets

P.S: Cheat sheets are concise, quick references to various technologies – summarizing the most important aspects in a compact, searchable and printable form.

 

Visual Flow Text Templates: Rich Text Formatting issue

01 Tuesday Mar 2016

Posted by Mani in Salesforce Configuration

≈ Leave a comment

Has anyone faced this issue before in Flows? I have faced it today and you can click on “This issue Affects me” button, if you think so.

https://success.salesforce.com/issues_view?id=a1p300000008XFtAAM

Tip#17 – Accessing “User License” field on User Object

07 Monday Dec 2015

Posted by Mani in Salesforce Configuration

≈ Leave a comment

Tags

UserLicense

If you want to access User license field which determines the type of license that user is on(ex: Salesforce, Salesforce Platform etc), you can access it in apex  as follows:

User.Profile.UserLicense.Name

Suppose, you want to create a validation rule in User object to make a custom field mandatory based on the license, it could be as follows,substitute Customfield with the actual field name(API name):

AND(ISNEW(),ISBLANK(Customfield), OR(Profile.UserLicense.Name=’Salesforce’,Profile.UserLicense.Name=’Salesforce Platform’)

← Older posts

Blog Stats

  • 67,746 hits

Archives

Recent Posts: Salesforce Everywhere

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

Lightning Components contd..

Introduction to Lightning Components(Aura Components)

Duration of the events in the Salesforce calendar can’t go beyond 14 days

Tip # 25: Error in creating Lookup relationship

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.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy