10 thoughts on “Did I Just See You “Hardcode” a Salesforce ID? Aw, Hell No!

  1. To avoid hard-coding IDs in Process Builder, another approach is to have your process call a Flow to lookup the ID. For instance if a process needs a record type ID, it could call a Flow to lookup the ID based on record type name. Do you think this approach has advantages/disadvantages compared to using custom labels or settings?

    Like

  2. Yes, this is the other way to go about it. This post was meant to highlight the use of custom labels, custom settings and custom metadata types. You can only do the lookup in flow but not process builder, validation rules, etc.

    Like

  3. Can you tell me now in Spring 17 how many total of master detail and lookup relationship is available? Thank you!

    Like

  4. Thanks You!- this came in handy today. We have a set of friendly taps on the shoulder to users who create accounts but don’t list themselves as a BD contact (shared record with 5 divisions) and it only applies to one record type.

    Like

  5. Awesome, awesome post! I’ll be referring to this frequently and passing the link on to friends. Thank you!

    Like

  6. Hi,
    Thank you for the useful article. However, I am struggling to reference the custom label which value is User ID in Lightning. When I use following syntax I receive an error ” You cannot use a custom label in the ID field”

    $Label.c.LabelName.

    Please advise. Thank you

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s