• BHinners
  • 216 Points
  • Member since 2013
  • Salesforce Architect
  • startup

  • Chatter
  • 6
    Best Answers
  • 0
    Likes Received
  • 3
    Likes Given
  • 1
  • 123

What are the maximum number of fields that can be added to a mini page layout? 

we are new to the saleforce and we are trying to  integrate our web application to salesforce.And we are decided to use soap Api and trying generate the WSDL but we are unable to find the generate WSDL in  Setup--->Develop---->Api.
                       And we came to know that we are unable generate wsdl in trial version but some are suggested to create developer.salesforce 
and we are confused about how to generate wsdl in developer.salesforce site. so kindly please let us know how to generate the wsdl. if it is to generate wsdl in developer.salesforce site.let us know how can we generate wsdl. 

Our custom object is the Bidding element of the Opportunity (which we call Bid__c) and is a related list against the standard opportunity object. On the Opportunity we have created a Lookup Relationship to the bid object, which needs to be auto popluated with the related bid number. We have in past used Workflow/Field Update to acheive this type of scenairo but obviously this doesnt work for Lookup Relationships. 

We have attempted to write our first trigger, we've got the stage that no error's are found but the trigger itself doesn't work. Code below:

trigger UpdateLookup on Opportunity (after insert, before update) 
    //instantiate set to hold unique Bid record ids
    Set<Id> BidIds = new Set<Id>();
    for(Opportunity s : Trigger.new)

    //instantiate map to hold deployment record Opportunity ids to their corresponding Bid Name
    Map<Id, Bid__c> BidIdsMap = new Map<Id, Bid__c>([SELECT Id, Name FROM Bid__c WHERE Id IN: BidIds]);

    for (Opportunity s : Trigger.new) 
        if (s.Name == null && BidIdsMap.containsKey(s.Bid_Name__c)) 
            s.Name = BidIdsMap.get(s.Bid_Name__c).Name;

We've kind of hit a brick wall and would really appreciate any support or guidance?

Opportunity Lookup Field - Bid_Name__c
Custom Object - Bid__c
Related field that we required to populate the lookup - Name (standard field)
Is there a certification for DEV502 or only training?

If Yes, what is the pre-requisite for DEV502? and how do we register for that ?

I currently have a few s-control pages actions on page1 will effect page2, page3, etc. Each s-control page contains form fields (textbox, checkbox, radio buttons, picklist, etc) that are populated by users and some pages rely on answers from other s-control fields. For example "page3.Form.Status" field is set based on how users answer "page2.Form.ApprovalNeeded" field. Additionally, when the form fields are populated, they are populated into a custom object Obj1__c. We have chosen not to do a visualforce page and rely on the s-control pages.

In a regular desktop browser on s-control page4, an Approval/Decline buttons show if the "page3.Form.Status" is set to "Awaiting Approval". The approval/decline are designed to set a custom field on the custom object Obj1__c through the UI. However, the approval/decline buttons do not show up on the Salesforce1 app and the mobile site of Salesforce. 

Are there any recommendations to get the approval/decline to show on the mobile friendly Salesforce site or Salesforce1 app? 

  • November 07, 2014
  • Like
  • 0

Does any one know how to create a link for a field like the [Change] for the record type or the [display hierarchy] for the account ??

Thank for the help

Lightning Experience Reports & Dashboards Specialist Trailhead challenge 3 in a brand new Trailhead Playground results in error id: EYSPRGBK


Just created this org and so the error tells me to post here:


There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: EYSPRGBK

Lightning Experience Reports & Dashboards Specialist Trailhead challenge 3 in a brand new Trailhead Playground results in error id: EYSPRGBK


Just created this org and so the error tells me to post here:


There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: EYSPRGBK

In trying to complete a module I was told to create a domain - which I did. Now, when I login to trailhead (using the same user name) I am directed to my domain-named org - not the original org that was associated with my trailhead playground. Every challenge since them has failed because the challenge "failed to find" the desired setup, even though the app or change was made in my org.
For example, in the module "Assessing the Quality of the data" I am asked to install the Data.com Assessment app into my org (brave-goat-427591-dev-ed--th-con-app...), but during the process, when I am asked to select my username, the install process redirects to the domain-name org, and consequently my challenges all fail...
How do I disconnect my username from the domain-named org, so that when I do an install into my "brave-goat..." org, the app is installed into the correct org?
The modules are extremely frustrating, when it comes to installing apps (needs to be run in an Incognito environment?)
Can anyone help?  The instructions on that website no longer follow Salesforce in real life. When I try to add a user column, per the SF instructions I get an error message.  Please help.
I'm looking for the correct SOQL syntax to use in query filter utiziling a custom setting record value. I see plent of info using the value in a formula field or apex, but I need it in SOQL.
Which interface allows developer to supply test data for unit testing calls in a apex class or apex test class?

Hi Everyone,
Since I am new to Salesforce.

I have request from my customer regarding sending out an email with PDF.

My problem is that in the PDF I need to show image in there too but the problem is that the image shown in the PDF is

broken. Image is save in the document and Externally Available is true. 

I have tried several scenario since I cannot use the actual URL of the image directly.

1) I have tried putting image URL in Rich Text Field (in img tag) . In salesforce image is showing correctly but when I send out an

email this image is showing as broken.

2) I have try putting image URL in URL field and then using that field in the PDF but image is still broken,


Can anyone guide me on how should I do it ?


Thank a lot.

  • April 03, 2016
  • Like
  • 0
Hi guys,

is there a way to access to a specific custom setting for the current profile directly from my Apex page ?

Thanks in advance :)
Hi ,
Please help me answering below questions.
1. What must the Controller for a Visualforce page utilize to override the Standard
Opportunity view button?
A. The StandardSetController to support related lists for pagination.
B. the Opportunity StandardController for pre -built functionality.
C. A callback constructor to reference the StandardController.
D.A constructor that intrializes a private Opportunity variable.
Confused between Answer B and C

2.what is a correct pattern to follow when programming in Apex on a Multi -tenant
A. Apex code is created in a separate environment from schema to reduce deployment
B.DML is performed on one record at a time to avoid possible data concurrency issues.
C. Queries select the fewest fields and records possible to avoid exceeding
governor limits.
D. Apex classes use the ''with sharing" keyword to prevent access from other server
I think Answer is C

3.How can a developer refer to, or instantiate, a PageReference in Apex?
Choose 2 answers
A. By using a PageReference with a partial or full URL.
B. By using the Page object and a Visualforce page name.
C. By using the ApexPages.Page() method with a Visualforce page name.
D. By using the PageReference.Page() method with a partial or full URL.
I think Answer A,B

4.What can the developer do to successfully deploy the new Visualforce page and
A. Create test classes to exercise the Visualforce page markup.
B. Select "Disable Parallel Apex Testing" to run all the tests.
C. Add test methods to existing test classes from previous deployments.
D. Select "Fast Deployment'' to bypass running all the tests.
Answer D

5. When can a developer use a custom Visualforce page in a Force.com application?
Choose 2 answers
A. To create components for dashboards and layouts.
B. To deploy components between two organizations.
C. To generate a PDF document with application data.
D. To modify the page layout settings for a custom object.
Answer A, C

6. Which statement about the Lookup Relationship between a Custom Object and a
Standard Object is correct?
A. The Lookup Relationship on the Custom Object can prevent the deletion of the
Standard Object.
B. The Lookup Relationship cat:That be marked as required on the page layout for the
Custom Object.
C. The Custom Object will be deleted when the referenced Standard Object is
D. The Custom Object inherits security from the referenced Standard Objects
Answer C

Please clarify these questions.
select id, name from account where name = :user.userrole.name

does not return anything due to an error in this query. the bind variable is used in a different query so it is valid as a value. This must be a relationship issue. Can anybody confirm or offer a fix please?
I am attempting to create a Visualforce Email template that basically emails the contact and shows its related list of Assignments__c in the template.

I am following the document here: https://developer.salesforce.com/page/VisualForceEmailTemplates_sample

However I am receiving an error: Error: Invalid field Contact for SObject Assignments__c

<messaging:emailTemplate subject="Tomorrow's Inspections and Homeowner Closing Appointments" 

<messaging:htmlEmailBody >

            <p>Dear {!recipient.name},</p>
            <p>Attached is your inspection schedule for tomorrow. Please review it to make sure there is enough time allowed between inspections. 
            Call Rick Werts (863) 207-6550 with any changes that are necessary to make sure we are making every appointment on time. 
            Thank you for all of your hard work out there.

            Thank you,

            Bill Todd
            V.P. of Sales
            <table border="0" >
<th>Policyholder Name</th><th>Risk Street</th>
                    <th>Risk City</th><th>Risk State</th>
                    <th>Risk Zip Code</th><th>Inspection Date and time</th>
                    <th>Homeowner Closing Appt</th>
                <apex:repeat var="cx" value="{!relatedTo.Contact.Assignments__c}">
                    <td><a href = 
                <apex:outputLink value="http://www.salesforce.com">
                    For more detailed information login to Salesforce.com

Am trying to use the google gauge functionality to bring in a guage chart on an account. I it to show the percent compelete of a record. I am using this link as a reference. http://salesforceselflearn.blogspot.in/

For some reason the visualforce page component is not showing up in the page layout of the Account. I have created the class and the visualforce page in our sandbox. Below is the code. 

public class googleChartController {

    Public String acctId {get; set;}
    Public String query {get;set;}
    Private Decimal TotalFieldCount {get;set;}
    Private Decimal FilledFieldCount {get;set;}
    Public Decimal TotalPercentage {get;set;}
    Public GoogleChartController(ApexPages.StandardController controller){
        acctId = controller.getRecord().id;
    public void fetch() {
        String SObjectApiName = 'Account';
        Map<String, Schema.SObjectType> objectMap = Schema.getGlobalDescribe();
        Map<String, Schema.SObjectField> fieldMap = objectMap.get(SObjectApiName).getDescribe().fields.getMap();
        String fieldString = '';
        for (String fieldName : fieldMap.keyset())
            if(fieldString == '')
                fieldString = FieldName; 
                } else{
                    fieldString = FieldString + ',' + fieldName;
        query = 'Select' + fieldString + 'from' + SObjectApiName + 'WHERE id = :accID' ;
        Account accountRecord = Database.query(query);
        TotalFieldCount = 0;
        FilledFieldCount = 0;
        for (String fieldName : fieldMap.keyset())
            if(accountRecord.get(fieldName) != null || string.isBlank(fieldName))
        TotalPercentage = (FilledFieldCount/TotalFieldCount) * 100;
        TotalPercentage = TotalPercentage.setScale(0);

Visualforce Page
<apex:page > standardController="Account" extensions="googleChartController">
        <script type = "text/javascript" src = "https://www.google.com/jsapi"> </script>
        <script type = "text/javascript">
            google.load("visualization", "1", {packages: ["guage"]});
            google.setOnLoadCallback (drawChart);
           function drawChart() {
                var totalFields = {TotalPercentage};
                var data= google.visualization.arrayToDataTable([
                    ['Label', 'Value'],
                    [' % ', totalFields],
                var options = {
                    width: 400, height: 200,
                    redFrom: 0, redTo: 75,
                    greenFrom: 75, greenTo: 100,
                    minorTricks: 10
            var chart = new google.visualization.Gauge(document.getElementById('chart_div'));
            chart.draw(data, options);
       <div id="chart_div" style="width: 400px; height: 200px;"></div>

Apprecaite any help. 


I am currently taking a trailhead course which requires developer edition.So,I created one with,but I am not able to login to my devleloper edition.I am using the credentials which I set during signup.Am I missing something?
Per the docs, "Visualforce mapping components aren’t available in Developer Edition organizations". This is unfortunate if you're trying to develop a package in a dev org. Is there a way to create a Visualforce Map in a Dev Org that when deployed to an EE org, it will display?
I am getting below error while doing trail head
Step not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.EmailException: SendEmail failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Either the plain text body or html body must be supplied.: [] 
Note: you may run into errors if you've skipped previous steps.

Today we’re excited to announce the new Salesforce Developers Discussion Forums. We’ve listened to your feedback on how we can improve the forums.  With Chatter Answers, built on the Salesforce1 Platform, we were able to implement an entirely new experience, integrated with the rest of the Salesforce Developers site.  By the way, it’s also mobile-friendly.

We’ve migrated all the existing data, including user accounts. You can use the same Salesforce account you’ve always used to login right away.  You’ll also have a great new user profile page that will highlight your community activity.  Kudos have been replaced by “liking” a post instead and you’ll now be able to filter solved vs unsolved posts.

This is, of course, only the beginning  and because it’s built on the Salesforce1 Platform, we’re going to be able to bring you more features faster than ever before.  Be sure to share any feedback, ideas, or questions you have on this forum post.

Hats off to our development team who has been working tirelessly over the past few months to bring this new experience to our community. And thanks to each of you for helping to build one of the most vibrant and collaborative developer communities ever.

As Bulent points out, we had record numbers attending our Force.com Sites webinar last week, during which we announced the Force.com Sites Developer Challenge.

The challenge page has all the details, but in short the rules are pretty simple: "You can use any or all parts of the Force.com platform, as long as you use Force.com Sites, and you can submit as many applications as you like." And you have a month to do it in - submissions close on January 9 January 30.

That's it! Create anything, as long as you use Force.com Sites. And Sites enables an entirely new breed of applications, so I'm really looking forward to seeing what you folk submit. If you're new to Sites and Visualforce, we have a couple of challenges that you can use to get you started. See the Developer Challenge Guide for details.

Oh, we'll be handing out a number of prizes too! Developer Challenge t-shirts, iPod Nanos, iPod Touches and more!

Here are some handy resources: Happy coding!

Message Edited by Tran Man on 01-06-2009 04:16 PM