Jim
  • Member for 9 years, 5 months
  • Last seen more than a month ago
  • Australia
TEMPLATE_NOT_FOUND When workflow is fired from Communties
Accepted answer
8 votes

We found that this error was being caused, by the referenced records not being shared. We figured this out by turning all related objects referenced in the template to public read sharing, which fixed ...

View answer
Lead RecordType Set in Trigger being changed back to Default RecordType for User
Accepted answer
6 votes

Figured this one out myself - hopefully this answer helps someone else. In the lead settings, there is a setting to Override the existing record type with the assignee's default record type. Updating ...

View answer
How to create Date picker field in Visualforce page
5 votes

You can bind directly to a date field on an sObject(in my example contact) using Visualforce like this: <apex:inputField value="{!Contact.BirthDate}" /> Visualforce will render as ...

View answer
Using sibling child relationship in Email Template Merge field
Accepted answer
3 votes

It seems that this functionality doesn't currently work in Salesforce. While it is possible to save a email template with relationship fields - they simply don't work. See this idea to have this fixed....

View answer
Can I Edit any data on a converted lead?
2 votes

With the release of Spring 16 you can now update converted lead fields. On the profile (or permission set) you will need the following permissions: User Permissions Needed To update converted leads: ...

View answer
How to make a picklist input field as required in a Visualforce page?
Accepted answer
1 votes

With the new Winter 17 release existing custom picklist fields can now be marked as required at a field level. To create or modify custom picklists: Picklist on an object — Use the fields area of the ...

View answer
Update the converted lead record?
1 votes

In Spring 16 you can now update leads after they have been converted. You will need to add the following permissions to your profile. User Permissions Needed To update converted leads: "Set Audit ...

View answer
Return Boolean From Action Function called from JS
Accepted answer
1 votes

I ended up removing the dependency on the controller to track the record state. Instead I had a hidden input field on the VF page and rewrote the value of this field with JS. I created two new JS ...

View answer
Test Class Coverage for Get Property
Accepted answer
1 votes

The issue is your method is returning a boolean but in your test you are trying to assign it to a List of Opportunities: List<Opportunity> op = controller.getRaisedDateandTime(); Try the ...

View answer
Test Class Issue - My REST Method Isn't Getting Run
1 votes

You need to create your test data e.g. Clinical_Study__c clinicalStudy = new Clinical_Study__c(); clinicalStudy.Name = 'GA00806'; insert clinicalStudy; PageReference pageRef = Page....

View answer
Visualforce Dependent Picklist In Apex TabPanel
Accepted answer
0 votes

This turned out to be because the controlling field was being displayed on tab2. Even though tab2 was not selected it seemed to be picking up the wrong controlling field value (each tab was a record ...

View answer
Encrypted fields creation limit
0 votes

As a word of warning I could not find a confirmation from SF in their docs for a set limit of encrypted fields, but I believe they are simply treated as a custom field. So in theory I think you can ...

View answer
How to setup formula
0 votes

You can use a cross object formula. To do this perform the following actions. From Salesforce Click Setup From setup menu expand Create Select Objects, then click on your Account Vehicle ...

View answer