• About
  • Contact me!

Salesforce Everywhere

~ Blog on Salesforce Dev and admin stuff

Salesforce Everywhere

Category Archives: Uncategorized

Debugging flow trigger error

01 Thursday Jun 2017

Posted by Mani in Process Builder, Uncategorized

≈ 2 Comments

Tags

Flow trigger error, process builder error

Yesterday morning, one of the batch in my company failed with the following error and I had to debug:

The record couldn’t be saved because it failed to trigger a flow.
A flow trigger failed to execute the flow with version ID 200L0000000DApf”

I knew that we do not have any Visual flows hence it should be one of the processes in the process builder failed, but how do I find out the name of the process which has failed?

One of the easiest option is to take the version ID as mentioned above(200L0000000DApf) and go to https://workbench.developerforce.com->Info > Metadata Types & Components.  Click ‘Expand All’ and Search for the ID(200L0000000DApf). You will know the name of the process which has failed and if you want to know in which step it has failed, obviously put a debug log and simulate the scenario to get the error. Then, you can check the log for more information.

Let me know for any questions. Thanks!

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#21 – ColumnCopy

18 Saturday Mar 2017

Posted by Mani in Uncategorized

≈ Leave a comment

Apologies, have been busy with work and personal stuff hence could not write posts for a long time and I am back:)

Suppose you want to copy all the fields in an object and put them on to excel, you can use the following chrome extension:

https://chrome.google.com/webstore/detail/columncopy/lapbbfoohlcmlbdaakldmmallcbcbpjb?hl=en

Example:

Suppose, you want to copy all the custom fields from Order object, you can follow the below steps to do so:

  1. Go to Setup -> Orders -> Fields
  2. Navigate to see Order Custom Fields & Relationships section
  3. Right click and select Copy entire table from ColumnCopy option. It will highlight the table that is getting copied, once you select this option.

Columncopy

4. Then open excel and paste

Excel

Hope this tip will be useful!

P.S: you have an option to only the column too by selecting Copy this column option.

 

Code Indentation

20 Monday Jun 2016

Posted by Mani in Uncategorized

≈ Leave a comment

Tags

code indentation

I have been working in Batch apex and there was always a need to indent the code for readability and understandability.

I have used the following link for indenting the code:

http://courses.cs.washington.edu/courses/cse341/10au/indent.html

Hope you can also use it for code indentation!

Issue: Duplicate (blank) versions are created when deploying a Flow with Change Set

24 Tuesday May 2016

Posted by Mani in Known issues, Uncategorized

≈ Leave a comment

Tags

duplicate version in flow

I tried deploying the flow to Production org using Change Set and the flow was modified in my Sandbox Org. After deployment, Salesforce created 2 versions of the flow in Production org and one was blank. When I searched in google, I found out that this is one of the known issue. Here are the details and you can subscribe to this link, if this issue affects you so that you will be notified by Salesforce when the issue is resolved. Thanks!

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.

Salesforce Ideas implemented in Summer’16 release

17 Tuesday May 2016

Posted by Mani in Salesforce releases, Uncategorized

≈ Leave a comment

Tags

Summer 16

I have gone through this article and excited about the features released as part of Summer’16 release , so thought of sharing it. Thanks!

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!

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.

Tip#19 – Using workbench to execute APEX

10 Wednesday Feb 2016

Posted by Mani in Apex, Uncategorized

≈ 2 Comments

Tags

Salesforce Tips

Today, I was working on a requirement which queries public group and sends an email to the users(group members) with an attachment from the custom object record and it was implemented using APEX code. I wanted to test using Execute Anonymous option in Developer Console before I call the code using process builder. When I tried executing it in Developer Console, it was throwing Sending Request – Execution Failed error. I could not figure out the reason for it, but I realised that using workbench to execute Anonymous APEX code is better than Dev Console since your code, results are displayed in the same page and you can set the log level too.

Steps to execute APEX in Workbench:

a. Login to https://workbench.developerforce.com
b. Select Sandbox or Production(obviously, we will test the code in Sandbox first)
c. Then system will ask you to login to Salesforce
d. Once logged in, select “Apex Execute” in Jump to option
e. Paste your code in the text box and click on Execute button.
f. System will show the results on the same page. You can select the appropriate Log category and Log level too.

In the future post, I will write about creating a flow to query the public group based on the name and send an email to the group members(role based members).

← Older posts
Newer posts →

Blog Stats

  • 67,646 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