Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
11 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

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
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
  • 136k
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
7 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.6k
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
  • 494k
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
  • 494k
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

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
  • 494k
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
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
  • 136k
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,125
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
  • 150k
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.6k
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
  • 150k
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
  • 494k
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

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

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
3 votes
Accepted

Custom Object Nested Query on Standard Object

You can find the relationship name by running a script like this one: for (ChildRelationship relation : SObjectType.Case.getChildRelationships()) if (relation.getChildSObject() == MyObject__c....
Adrian Larson's user avatar
  • 150k
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
3 votes
Accepted

Looping through Trigger new Field Value Issue

Related objects are not populated for the object in a trigger, so you'll need to explicitly retrieve the accounts for your contacts. You need to loop through your contacts to collect the account IDs, ...
David Cheng's user avatar
  • 7,094
3 votes
Accepted

Custom Labels and Error Messages

It simply means: When you have a label attribute, the component level error message would show error in context label passed in attribute. When your have a empty label attribute or does not have a ...
Raul's user avatar
  • 18.8k
3 votes
Accepted

Can i query a custom metadata type within a loop?

As Salesfoce follows a multi-tenant architecture, that necessarily implies you cannot make unlimited number of queries (even though you can for custom metadata types per documentation) or use any ...
Jayant Das's user avatar
  • 30.6k
3 votes

Are there any disadvantages to setting up My Domain?

Its a must that need to be done before creating and using lightning components in tabs,app builder etc. There aren't any major con's that i can think of which would affect you because of setting up my ...
RedDevil's user avatar
  • 7,821
3 votes

Developer costs associated with custom development for single account?

You can get a free Developer Edition organization by going to developerforce.com, then clicking on the Sign Up button. It never expires as long as you continue to use it. You can create a package in ...
sfdcfox's user avatar
  • 494k
3 votes
Accepted

Developer costs associated with custom development for single account?

Welcome to the community, your question could go deep but broadly speaking no there are no significant additional costs to being a salesforce developer. You should be able to do all of your ...
Mitch Hunt's user avatar
3 votes

Can ISNULL be used with custom settings in formula?

The problem isn't ISNULL (though ISBLANK is the recommendation for new fields), it's that checkbox fields won't ever return null. If the custom setting is null, any checkboxes on it will appear as a "...
sfdcfox's user avatar
  • 494k

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