Hot answers tagged

10 votes
Accepted

what is the use of data type in salesforce custom object?

You can define the object name with text type or autonumber If you select Text then you can manually enter value in name field. If you select Autonumber then Name field will be generate automatic. ...
Ratan Paul's user avatar
  • 22.3k
10 votes
Accepted

Get the name of the Data Extension you are working with : Custom Activity

You can use undocumented 'requestSchema' Postmonger event to retrieve schema of event data source: connection.trigger('requestSchema'); Than use response from Journey Builder: connection.on('...
Ros Haitovich's user avatar
9 votes
Accepted

Session Id not getting refreshed automatically with Custom Auth provider in Salesforce Named Credentials

Just an update for anyone facing the same issue. After raising a case with SF we could confirm that the refresh function is only triggered to get new session Id in case the previous callout return '...
Abhijeet Bhandari's user avatar
8 votes
Accepted

Does sending a file to an external server fall under the heap size limit considerations?

Various Apex limits will get in the way of trying to push the data from Salesforce. Instead, one approach is to signal to the third-party application that the file is ready to be moved via a HTTPS ...
Keith C's user avatar
  • 134k
8 votes
Accepted

How do I create a Lightning web component that shows all the custom list views of an object?

Take a look into the lightning/uiListApi module. It has below functionality - Get list view records and metadata for a list view by API name import { LightningElement, wire } from 'lwc'; import {...
Mohith Shrivastava's user avatar
7 votes
Accepted

What is the difference between My domain and sites domain?

MyDomain is a custom URL to directly log-in to your Salesforce Instance rather than going through https//login.Salesforce.com. You can go through either one to reach your instance, but it allows for ...
crmprogdev's user avatar
  • 40.8k
7 votes
Accepted

Layout - How to rename related lists?

You can change the Related List Label by modifying the Related List Label field on the field that references the parent object. In your case, if you go to the object CaseBugJunctionObject, edit the ...
sfdcfox's user avatar
  • 468k
6 votes
Accepted

Retrieve custom labels in salesforce dynamically without mentioning the name of the label in the code

You can use the Metadata API to pull down all the labels at once by using the wildcard character. Here is an example package.xml for accomplishing this: <?xml version="1.0" encoding="UTF-8"?> &...
Phil Rymek's user avatar
  • 6,139
6 votes
Accepted

Create custom 'Tab Style Selector' using api

1 I have created a list of predefined motif available in salesforce ,However you can always create custom motif. Please upvote if this answers your first question. Custom1:Heart Custom2:Fan Custom3:...
Vikas Khandelwal's user avatar
6 votes

How to get Custom Settings in Apex Test code?

The following worked for me. The code that uses a token: Map<String, ServiceTokens__c> setting = ServiceTokens__c.getall(); ServiceTokens__c token = setting.get('Token__c'); ...
dev.e.loper's user avatar
6 votes
Accepted

Java script button with permission set

There's no need to go through all this work. Just create a custom permission, then access it via $Permission: if({!$Permission.Manage_Accounts}) { var record = new sforce.SObject("Address"); ...
sfdcfox's user avatar
  • 468k
6 votes
Accepted

Accessing Data Extension field values - Journey builder custom activity

If those values are part of the entry event, you can access them using the following expression: {{Event.<YOUR ENTRY EVENT DEFINITION KEY>.\"<EVENT DATA ID PATH>\"}} If not, you need to ...
Markus Dang - formerly Slabina's user avatar
6 votes
Accepted

Accessing subscriber profile attribute values - Journey builder custom activity

Update It has just occurred to me that it is possible to retrieve Email Subscriber Profile Attributes using Data Binding. I don't know why this didn't occur to me earlier. Simply use the string: {{...
Eliot Harper's user avatar
  • 16.2k
6 votes

Can i query a custom metadata type within a loop?

The documentation states that you do get unlimited queries, but you're still limited by query rows. As such, you should attempt to optimize your code to use as few queries as possible. For example, ...
sfdcfox's user avatar
  • 468k
6 votes

Get the name of the Data Extension you are working with : Custom Activity

You can use requestedTriggerEventDefinition Postmonger event, it will return a schema that will return information about the Journey builder(Name,dataExtensionId,...) to you. You need the field ...
Alejandro Barchino Navarro's user avatar
5 votes

how to allow employees to post reviews for candidates

There are lots of ways you can do something like this, but the most important thing to consider first are what the other requirements of the application will be. Will all of your employees be ...
psheil's user avatar
  • 308
4 votes

Finding if a custom field is editable using Apex code

Being editable and updateable is not the same thing for any sobject field. For example:ActivatedDate, ActivatedById, LastReferencedDate, LastViewedDate, StatusCode, EmailBouncedReason etc. These are ...
umithuckan's user avatar
4 votes

Trigger Not Firing - When Child Updated, Update Field on Master

Your logic to identify the master to update is a little wonky. You're not associating the master with its proper child. Check out my sample below. trigger updateMasterName on Child_Custom__c (before ...
Sebastian Kessel's user avatar
4 votes

How to display custom fields in Visual Force

A single field in this context where you want to pick your own label would be: <apex:pageBlockSectionItem> <apex:outputLabel value="{!$ObjectType.Lead.fields....
Keith C's user avatar
  • 134k
4 votes
Accepted

How to embed a preexisting VF page into a section of the Account Page?

Make sure that page, that you want to add is using standartController of you object: <apex:page standardController="Opportunity" id="pg"> or <apex:page standardController="Account" ...
Ilya Lepesh's user avatar
  • 4,105
4 votes
Accepted

Javascript error - Unterminated String Constant

You can't declare multi-line strings in Javascript. Here is your issue: CEM = 'Dear {!mergeField} More Text ...'; Instead, you could concatenate the string if you want to break it up onto ...
Adrian Larson's user avatar
  • 148k
4 votes
Accepted

Custom Profile center code along with admin page in sfmc documentation clarification?

if you are trying to learn AMPscript, building an integrated custom profile center isn't the best starting point, as you really need to understand core language fundamentals such as rowsets, ...
Eliot Harper's user avatar
  • 16.2k
3 votes

Can I build a custom button to submit a opportunity into approval process?

use this code. It will help you. Javascript: {!REQUIRESCRIPT("/soap/ajax/24.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/24.0/apex.js")} sforce.apex.execute("SAPRequest","...
Tushar Sharma's user avatar
3 votes

Sites: While in maintenance mode, custom maintenance page(s) do not display

I was just experiencing this same issue: After deactivating my site, I wasn't able to view our custom maintenance page; a standard Visualforce error page showed up instead. After running a debug log ...
Martha Seneta's user avatar
3 votes

Sites: While in maintenance mode, custom maintenance page(s) do not display

I know this is an older post, but for others taking too much time to figure this out, here's what I have found. For sites (and communities) go to Setup | Develop | Sites and click on the site label ...
Dave's user avatar
  • 31
3 votes

How to set Date/Time in salesforce using javascript

I got solution for this. I tried like this.. jpt.Approved_Date__c=new Date().toISOString();
Vijay Kumar's user avatar
3 votes
Accepted

Not receiving an email from Apex trigger

You have to actually call Messaging.sendEmail. For example: Messaging.sendEmail(new List<Messaging.SingleEmailMessage> { mail }); In regards to governor limits, you only get 10 invocations of ...
Adrian Larson's user avatar
  • 148k
3 votes

Problem with OnClick of Javascript for button occured

You can't use a literal newline in a JavaScript string. This causes an "unterminated string" parsing error. To fix it, use string concatenation: var url = '/apex/QuoteRequestDetailsPage?'+ ...
sfdcfox's user avatar
  • 468k
3 votes

lightning page custom tabs translation

From what I can tell, lightning tab translations are not directly supported in Translation Workbench, but there's a workaround. The code for a Lightning Tab looks something like this: <lightning:...
crmprogdev's user avatar
  • 40.8k
3 votes

Journey builder not working properly - Getting 403, 500 errors in marketing cloud AJAX calls

As from the failed routes' URLs this are the standard activities by Salesforce. I got this error once, but it seemed to be a problem at Salesforce and has been fixed about 30 minutes later. Try ...
Markus Dang - formerly Slabina's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible