• maman
  • NEWBIE
  • 10 Points
  • Member since 2013
  • Independent Consultant
  • Self-employed

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 6
    Replies
There seems to be a problem with this challenge if you have Person Accounts enabled in the org that you're using with Trailhead. With Person accounts enabled, Contacts under Org-Wide Defaults are set to "Controlled by Parent" and can't be changed, which therefore means when you create a profile with Read access to  the Accounts object, you must also give Read access to the Contacts object. There's no way to specify access to just the Accounts object, which is required to pass this Challenge.
  • February 06, 2016
  • Like
  • 0
I believe there's a problem with this challenge if you have Person Accounts enabled in the org that you're using with Trailhead. With Person accounts enabled, Contacts under Org-Wide Defaults are set to "Controlled by Parent" and can't be changed, which therefore means when you create a profile with Read access to  the Accounts object, you must also give Read access to the Contacts object. There's no way to specify access to just the Accounts object, which is required to pass this Challenge. Am I missing something?
  • February 05, 2016
  • Like
  • 0
We have enabled Advanced Currency Management to take advantage of Dated Exchange Rates. Since there is no support for Dated Exchange Rates on custom objects, is there a way to programmatically alter the way a Currency field does its conversion, and thereby force a currency field on a custom object to use a Dated Exchange Rate, vs. a static rate, which is what it does by default? Or is it at too low-level to modify how a field type operates?
  • August 03, 2015
  • Like
  • 0
My multi-currency client has enabled Advanced Currency Management to take advantage of Dated Exchange Rates on opportunities. Because Salesforce does not extend the Dated Exchange Rate support to custom objects, my client is seeking a developer to provide this support for currency fields on two opportunity child objects. Support for roll-up summary fields on the opportunity object is also desired.

Has anyone out there covered this ground before, and/or who can repurpose existing code to craft a solution for us?

Related links that discuss the problem:
    https://success.salesforce.com/ideaView?id=08730000000BpUrAAK
    https://developer.salesforce.com/forums/?id=906F00000008msiIAA
  • July 18, 2015
  • Like
  • 0
We are getting an error when running a test on the MyProfilePageController Apex class, as follows: 

System.DmlException: Insert failed.
First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, A first name is required.[Full_Name__c]
Stack Trace Class.MyProfilePageController.testSave: line 93, column 1


Since Apex tests are run when deploying change sets, we cannot deploy a set until this error is resolved. Problem is, we didn't write the code, and we're not developers. Looks like it's Salesforce.com code. Unfortunately, we don't have Premium support, and Salesforce will not assist and have directed us to this forum.

Help!
 
  • November 11, 2014
  • Like
  • 0

I've got a custom object Project Team Members related to the standard Opportunity object in a master-detail relationship. I'm trying  to create a Visualforce email template that lists the related list of team members when triggered by a workflow rule on the Opportunity object. Found this sample template:

 

http://wiki.developerforce.com/page/VisualForceEmailTemplates_sample

 

I've tweaked the template to get the job done, but no joy. Getting this error message:

 

        Error: Invalid field Project_Team_Members__c for SObject Opportunity

 

What am I missing? Here's the modificed template:

 

<messaging:emailTemplate

  recipientType="User"

  relatedToType="Opportunity"

  subject="Allocations report for Project: {!relatedTo.name}"

  replyTo="support@acme.com">

  <messaging:htmlEmailBody>

    <html>

      <body>

        <STYLE type="text/css">

          TH {font-size: 11px; font-face: arial;background: #CCCCCC;

               border-width: 1;  text-align: center }

          TD  {font-size: 11px; font-face: verdana }

          TABLE {border: solid #CCCCCC; border-width: 1}

          TR {border: solid #CCCCCC; border-width: 1}

        </STYLE>

        <font face="arial" size="2">

          <p>Dear {!recipient.name},</p>

          <p>Below is a list of staff allocated to the project: {!relatedTo.name}.</p>

          <table border="0" >

            <tr >

               <th>Specialist</th>

               <th>PTL</th>

               <th>Billing Role</th>

               <th>Date Assigned</th>

               <th>Date Unassigned</th>

               <th>Comments</th>

            </tr>

            <apex:repeat var="cx" value="{!relatedTo.Project_Team_Members__c}">

              <tr>

                <td><a href="https://na1.salesforce.com/{!cx.id}">View</a> |

                <a href="https://na1.salesforce.com/{!cx.id}/e">Edit</a></td>

                <td>{!cx.Specialist_Name__c}</td>

                <td>{!cx.PTL_Indicator__c}</td>

                <td>{!cx.Billing_Role__c}</td>

                <td>{!cx.Date_Assigned__c}</td>

                <td>{!cx.Date_Unassigned__c}</td>

                <td>{!cx.Comments__c}</td>

              </tr>

            </apex:repeat>               

          </table>

          <p />

        </font>

      </body>

    </html>

  </messaging:htmlEmailBody>

</messaging:emailTemplate>

  • April 07, 2013
  • Like
  • 0
There seems to be a problem with this challenge if you have Person Accounts enabled in the org that you're using with Trailhead. With Person accounts enabled, Contacts under Org-Wide Defaults are set to "Controlled by Parent" and can't be changed, which therefore means when you create a profile with Read access to  the Accounts object, you must also give Read access to the Contacts object. There's no way to specify access to just the Accounts object, which is required to pass this Challenge.
  • February 06, 2016
  • Like
  • 0
Hello everyone, I've been working on this challenge in the Date Security portion of Trailhead for some time but need some help (See below)

The challenge requires a profile to be created with the following traits:
    Name: Account Reviewer
    Salesforce license type
    Only read access to Account object. (And no access to any other object in the Org)

Understand that I did read the indepth reading before hand and I created a read-only clone profile in the Accounts profile list but am stuck as how to proceed from there. Challenge error states: Challenge not yet complete ... here's what's wrong: The 'Account Reviewer' profile does not work as expected. Please Advise.
We are getting an error when running a test on the MyProfilePageController Apex class, as follows: 

System.DmlException: Insert failed.
First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, A first name is required.[Full_Name__c]
Stack Trace Class.MyProfilePageController.testSave: line 93, column 1


Since Apex tests are run when deploying change sets, we cannot deploy a set until this error is resolved. Problem is, we didn't write the code, and we're not developers. Looks like it's Salesforce.com code. Unfortunately, we don't have Premium support, and Salesforce will not assist and have directed us to this forum.

Help!
 
  • November 11, 2014
  • Like
  • 0

I've got a custom object Project Team Members related to the standard Opportunity object in a master-detail relationship. I'm trying  to create a Visualforce email template that lists the related list of team members when triggered by a workflow rule on the Opportunity object. Found this sample template:

 

http://wiki.developerforce.com/page/VisualForceEmailTemplates_sample

 

I've tweaked the template to get the job done, but no joy. Getting this error message:

 

        Error: Invalid field Project_Team_Members__c for SObject Opportunity

 

What am I missing? Here's the modificed template:

 

<messaging:emailTemplate

  recipientType="User"

  relatedToType="Opportunity"

  subject="Allocations report for Project: {!relatedTo.name}"

  replyTo="support@acme.com">

  <messaging:htmlEmailBody>

    <html>

      <body>

        <STYLE type="text/css">

          TH {font-size: 11px; font-face: arial;background: #CCCCCC;

               border-width: 1;  text-align: center }

          TD  {font-size: 11px; font-face: verdana }

          TABLE {border: solid #CCCCCC; border-width: 1}

          TR {border: solid #CCCCCC; border-width: 1}

        </STYLE>

        <font face="arial" size="2">

          <p>Dear {!recipient.name},</p>

          <p>Below is a list of staff allocated to the project: {!relatedTo.name}.</p>

          <table border="0" >

            <tr >

               <th>Specialist</th>

               <th>PTL</th>

               <th>Billing Role</th>

               <th>Date Assigned</th>

               <th>Date Unassigned</th>

               <th>Comments</th>

            </tr>

            <apex:repeat var="cx" value="{!relatedTo.Project_Team_Members__c}">

              <tr>

                <td><a href="https://na1.salesforce.com/{!cx.id}">View</a> |

                <a href="https://na1.salesforce.com/{!cx.id}/e">Edit</a></td>

                <td>{!cx.Specialist_Name__c}</td>

                <td>{!cx.PTL_Indicator__c}</td>

                <td>{!cx.Billing_Role__c}</td>

                <td>{!cx.Date_Assigned__c}</td>

                <td>{!cx.Date_Unassigned__c}</td>

                <td>{!cx.Comments__c}</td>

              </tr>

            </apex:repeat>               

          </table>

          <p />

        </font>

      </body>

    </html>

  </messaging:htmlEmailBody>

</messaging:emailTemplate>

  • April 07, 2013
  • Like
  • 0