• 11211 Points
  • Member since 

  • Chatter
  • 370
    Best Answers
  • 0
    Likes Received
  • 12
    Likes Given
  • 0
  • 3392
I need help with Process Automation Superbadge Challenge # 5.
I cannot get through this challenge. I am keep getting error messages. When I activate the process It gives me following error
Challenge 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.DmlException: Insert failed. 
First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, You Need Approval From Manager.: []

Validation Rule: for high value opportunities. 
Amount  > 100000( this is my validation rule)

I also try this validation rule as well but got the different error:
IsClosed = TRUE, 
Amount > 100000, 
Approved__c <> TRUE 

Challenge 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.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 3011N000000EJ8H. Flow error messages: An unhandled fault has occurred in this flow
An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information. Contact your administrator for help.: []

When I Deactivate the process:
I got this error
Challenge Not yet complete... here's what's wrong: 
A new Opportunity with a 'Prospecting' stage for a 'Prospect' Account did not successfully create a Task for the Account owner with the Subject 'Send Marketing Materials'.

This doesnt make any sense to me because in my ORG I was able to verify the challenge. It did created the Robot Setup Record an also created the Task for the Opprotunity Owner.
Also I am getting this error message i my email
Error element myRule_9_A1 (FlowActionCall).
This approval request requires the next approver to be determined by the Manager field. This value is empty. Please contact your administrator for more information. 
What I am getting this error messages there is something wrong with the Approval Process or the Validation Rule. But I dnt know how to fix this.
One thing I have noticed that When the Opportunity is created with the Stage Negotiation it give me following error in my org.
This is when the Opp stage is Negotiation.
User-added image

User-added image

Here is my Approval Process:
User-added image

User-added image

User-added image



Hi Team,

Not able to verify the step 5 of the BUSINESS ADMINISTRATION SPECIALIST SUPERBADGE because of the following error:
Challenge Not yet complete... here's what's wrong:&nbsp; Unwanted fields are still present in the 'Residential Opportunity Page' layout.

I cloned the Utility layout as "Residential Opportunity Page" and modified as per the requirement but still facing the same issue.

Please share some details regarding this, your support will be very helpful for me.

I'm writing my first visualforce email template and have successfully displayed everything as needed, except the recipient name. I am sending this via a workflow using an email alert with my visualforce template. The list of recipients (contact records) are pulled as individual lookup field values on the record I am using to populate my email with.
When my workflow fires, the template gets sent to the correct Contact email addresses, I am just not able to get the Contact Name to display in the email. My email just comes out as "Dear  ,"
I'm not sure what I am missing here or where I might have messed up, any help/suggestions would be greatly appreciated!

Here is my template:
<messaging:emailTemplate recipientType="Contact"
subject="Status Report {!relatedTo.name}"

<messaging:htmlEmailBody >


<p>Dear {!recipient.name},</p>
<p>Below is our status report for {!relatedTo.name} for the week ending .</p>

<table border="0" >
<th>Blocking Items</th>
<th>On track with hours?</th>
<th>Other concerns?</th>
<th>Sprint/Schedule Status</th>
<apex:repeat var="cx" value="{!relatedTo.Initiatives__r}">



If you have any suggestions as to content that would be more beneficial to you or adjustment of the frequency of our status emails to you, please let us know so that we may adjust to suit your needs better.


Hi, When checking the challenge number 6 in the Super Badge Lightning Experience Specialist, I am getting this salesforce internal error.
When i tested the functinality in the trailhead playground manually, it is working as expected.
Let me know if there is any workaround for this.

Challenge 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.DmlException: Delete failed. First exception on row 0 with id 0031N00001JwOMWQA3; first error: DELETE_FAILED, Your attempt to delete Sam the ninja could not be completed because it is associated with the following adventure packages.: null, null : []
Hello everyone,

I am trying to verify the Trailhead challenge found at https://trailhead.salesforce.com/projects/create-reports-and-dashboards-for-sales-and-marketing-managers/steps/visualize-your-data-with-conditional-highlighting-report-charts-and-dashboards?trailmix_creator_id=00550000006yDdKAAU&trailmix_id=prepare-for-your-salesforce-administrator-credential and I keep geting an error when verifying. The error in its netirety is copied below. Can anyone advise what I'm doing wrong or what I'm missing? I've spun up a new org and gone through the remainder of the module to get the data back in, but I keep getting the same type of error. 

Challenge Not yet complete... here's what's wrong: 
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: PARKGGFT
Hey there,

I am building a custom 'Customizable Forecast' tab from scratch using Visualforce and a custom controller to add some new features. One of my requirements is to forecast off of the 'forecast heirarchy' defined in the Setup->Build->Customize->Forecasts (Customizable)->Forecasts Hierarchy. Until now, I've used the UserRoleId Field to find direct reports and subordinate roles/users. How can I use SOQL to query the Forecast Heirarchy for Direct Reports and  subordinate users instead? I can not find any info on an object that contains this information.

I am new to salesforce, I heard about Chargify framework. We need http call outs and lots of thing. Can anybody explain what excatly it is and what do we need to set it up. Please provide a simple example to describe it.
I am facing a problem with challenge 5 of the Superbadge. Error is:

Challenge Not yet complete... here's what's wrong: 
Ensure that you perform a query to verify the Save button works.

I have saved the 5 records by populating them and trying to work on the save button but unable to catch the error.
Below is my code of Product2Tests...Any help is appreciated.

@isTest (seeAllData=false)
private class Product2Tests {

     * @name product2Extension_UnitTest
     * @description UnitTest for product2Extension
    static TestMethod void Product2Extension_UnitTest(){
           PageReference pageRef = Page.Product2New;
        ApexPages.StandardController controller =new Apexpages.StandardController(new Product2());
            Product2Extension ext = new Product2Extension(controller);
            System.assertEquals(Product2Extension.productsToInsert.size(), Constants.DEFAULT_ROWS);
                  //System.assertEquals(Product2Extension.productsToInsert.size(), 2*Constants.DEFAULT_ROWS);
        Integer i=0;
        for(Product2Extension.ProductWrapper pr: Product2Extension.productsToInsert){
            if (String.isBlank(pr.productRecord.Name) || pr.productRecord.Name==null){
            if(String.isBlank(pr.productRecord.Family) ||  pr.productRecord.Family==null ){
        PageReference p=ext.save();
        System.assertEquals(Product2Extension.productsToInsert.size(), 5);

While developing a lightning component I wanted to access a sforce object FiscalYearSetting from Controller. Will it work when someone else uses my component?
I'm having a problem with my code because I need to get a list of records of a dynamic type, and that is working alright, but then I need to use some of the fields and can't reach them, giving me the error 'Variable does not exist".
Here is a sample of the code:
String queryString = 'select Id, '+ camposMainObj.get(0) +', '+ camposMainObj.get(1)+', '+ camposMainObj.get(2) +', test__c from ' +sObjName+ ' where Id = \''+recordId+'\'';
 List<sObject> obj = database.query(queryString); system.debug('sObjName ::::::::: '+obj);
 string listType = 'List<'+sObjName+'>';
 List<sObject> castRecords = (List<sObject>)Type.forName(listType).newInstance();
 ChartObject__c co = new ChartObject__c();
 co.Pai__c = castRecords[0].Id;
co.PaiName__c = castRecords[0].Name;
 co.PaiEmail__c = castRecords[0].Email__c;
 co.PaiPhone__c = castRecords[0].Phone__c;

The variable 'sObjName' contains the correct object type (in this case Pai__c).
Only the Id is recognized. The result query looks like this:
(Pai__c:{Id=a070O00001uWD58QAG, Name=pai1, Phone__c=910987654, Email__c=pai1@mail.com, test__c=asdf}

So I can get every field from the query, but can only get the Id on the new object and it matches the queried one. The Name, Phone__c, Email__c, etc give me that error. I tried many solutions but can't seem to make it work.

Any help is appreciated.

Thank you in advance.
I'm sure I have this right and everthing works perfectly when I create records but whenever I submit I get "Looks like something went wrong, please try again later."

I've searched round the web and confirmed my solution is the same as others (it is) but although the records update correctly, I can't get Trailhead to agree.

Is anyone else having any trouble?
Hi All,

I want all the index fields of an particular object in apex. I have searched throught the Schema describe but couldn't find a way to identify the field as index. Please let me know if somebody have any idea on this.


User-added image

Getting this error which is referencing a report from a previous step and the 'Close Date' by Calendar Month has no revevancy to that report. I believe the validation is not looking for the correct report here. Any suggestions on getting through this? I've re-done the whole step to try again and it still returns this error.

I am in the Project "Build a Discount Approval Process" at Step "Create Initial Submission Actions". I have now triple and quadruple checked my data but I can't seem to get ahead.

There error message I am receiving says: "Challenge Not yet complete... here's what's wrong: 
The initial submission action is not correct for the 'Discount Approval Process'. VP approval does not appear to be required for discounts over 40% for step #2 in the process."

However, IT IS! :-)

I need help.
Background info: I have been an admin for some time and am quite comfortable with SFDC, however, approvals and me don't get on well.

Thannk you all ahead of time...
I have a right side bar in the console layout. Can we do translation to this right side section labels?
Hi, I am using this sample app https://github.com/pozil/salesforce-react-integration to create a React app connected to Salesforce. 

I have created a Connected app inside my Salesforce, enabled OAuth and added a callback Uri that is identical to the one in the sample app. I have also replaced the consumer key and secret in the sample app for the ones in my SF Connected app, yet after entering and submitting my Salesforce login details, net::ERR_CONNECTION_REFUSED is still being thrown on the http://localhost:3000/auth/callback. I was advised that it might have something to do with connecting with older TLS version.
Can anyone suggest what would be required to allow Text Area Long as filters in List View?
Basically client is seeking to see a List View that renders with proper Wrap text  (not just limited to 3 lines) for Text Are Long and use Text Area Long as filters.

I take a bit of development is required. Could anyone list in bullets point the key components/pages to develop for this? 
Leonardo Girgenti 
Tried clearing cache and cookies, but this error keeps happening whenever I try to launch a Trailhead Playground. The error here says "too many redirects occurred trying to open.

Also, in trailhead I get this error whenever trying to create a new Trailhead playground "We were unable to create a Trailhead Playground for you. Please try again."

 Any ideas?
I am a newbie to salesforce and i have a requirement to which i need suggestions how to approach this requirement
I have 4 contacts related to one account and when someone deletes contacts, he should not be able to delete the last contact related to the account.For example: in account A1 i have 4 contacts and someone deletes the 3 contacts from that account then it should be deleted, after that there will be only 1 contact related to that account and den someone tries to delete the last contact than it should not be deleted and throws an error "There should be atleast one contact for this account <<account name>>".
How can i achieve this using trigger?
Here I want to use List rather than Map.
Force.com IDE2 is working for 8GB but in Force.com IDE2 documentation no where it is mentioned that it will not work with 4GB. Need confirmation so that requests can be raised to upgrade RAM to 8GB for all systems so that Salesforce DX can be implemented.
I am trying to find a solution to get the average time taken to close the 5 most recently closed cases on each Account and copy that value on to a custom field at the Account object level. I will be using this information to see if there is a timely resolution of cases logged on each account.
My idea of approach to this problem -
I have created a formula field on Cases object to calculate time taken in hours to close the case. I would use a SOQL query to get the 5 most recent cases (order by ClosedDate DESC LIMIT 5) for each account. Can we achieve a solution to get the average time at the Account level using standard salesforce features (process builder, flows etc.,) without going for custom code ? If it has to be custom code, is Trigger a solution here ?
Can anyone please give any inputs/ suggestions/ ideas ?
Thank you.
  • January 17, 2018
  • Like
  • 0

Hello. I am a newbie to Salesforce. 
I am trying to find a solution or how to design a solution to get the average time (in hours) taken to close the 5 most recently closed cases on to a custom field at the Account object level. I will be using this information to see if there is a timely resolution of cases logged on each account. 

My idea of approach to this problem - 
I have created a formula field on Cases object to calculate time taken in hours to close the case. I would use a SOQL query to get the 5 most recent cases (order by ClosedDate DESC LIMIT 5) for each account. Can we achieve a solution to get the average time at the Account level using standard salesforce features (process builders, flows etc.,) without going for custom code ? If it has to be custom code, is Trigger a solution here ?

Can anyone please give any inputs/ suggestions/ ideas ?

Thank you.

  • January 16, 2018
  • Like
  • 0
Here are my few questions:

1) why you cannot call future method from batch class as we can do from Queable class?
2) Why cant we call future from future?
3) Why future method has to be static?
  • January 16, 2018
  • Like
  • 0
Scenario: On the Account Object ,mobile user has to create new case which is related list on account.I created quick action on account object and target object is case and this quick action contains account(look up),contact(look up),subject,description.I need to prepopulate the contact look up with current logged in profile user.Could you any one please guide me the formula which need to be created in the predefined value .
I need to download an image and upload it in another org through API (in a Rich Textarea). I am not showing the image in same org in VF page. Is it possible to send rich text area  image from one org to another salesforce org through API?
I am getting different values in javascript on vfPage. When Manage Custom Permissions and Customized application checkbox is true, javascript returns value as per calculation and when that checkbox is not true javascript returns null.When Customize Application checkbox is trueWhen Customize Application checkbox is false
I get the following message:

Challenge Not yet complete... here's what's wrong: 
Couldn't find the "Thanks" badge in the instructor's Chatter feed after completing a Campaign.

According to my chatter feed:

User-added image

When I check the instructor's feed:

User-added image

Please advise.....

When checking the challenge for https://trailhead.salesforce.com/trails/force_com_admin_intermediate/modules/business_process_automation/units/process_builder, I receive the message "Challenge Not yet complete... here's what's wrong: An update to an account record failed to update the mailing address fields of all child contact records. Make sure that the process is correct and that it is activated." My process is active, and as I have only 12 accounts and 20 contacts in my org, I have updated the Shipping address of each Account and verified that all corresponding Contact mailing addresses are updated as expected by the process. I have no orphan contacts, and no accounts with zero contacts. Any idea why i would receive this error? 
We are using Lightning Sync for Gmail with the chrome extension. It works great in terms of surfacing the Contact and Account that match the email address being used when viewing/composing an email in Gmail.

However, we are shortly going to be turning on Contacts to Multiple Accounts. I have just tested in sandbox, and the extension does NOT surface any "Related Accounts", ie: it only surfaces the Contact's Direct relationship account, but not any other non-direct related accounts. This is going to annoy a lot of people in my business who are used to using the extension as is, so I would like to have a solution available.

So, I'm thinking the best way to solve this is to develop a custom lightning component that will use to email address being viewed/composed to, to search for any Related Accounts (is would basically search on the AccountContactRelation object). Any thoughts or alternatives?

Does anyone know if there is an appexchange/pre-developed solution out there for this? Tried searching but couldn't find anything. Happy to consider a paid solution.
  • January 14, 2018
  • Like
  • 0
When a lead moves from one status "Open" to "Marketing-Qualified" I want a rule to auto-populate "MQL Last Activity" and "MQL Last Activity Campaign" fields based on whatever their last activity and last activity campaign was.

The status we have are:
Law Firm Nurturing
But the only fields I need to be updated are
One thing I also need to ensure happens is if someone skips a status (i.e. MQL straight to SQL) that the current last activity is also updated for SAL. I need this for every combination that can happen when a status is skipped. 

How might I do this? I was told to use Visual Workflow, but I have only completed the Trailhead and that's as much as I know, can someone help me figure this one out? 
I apparently locked myself out of my org and cannot figure out how to allow myself access again. How can unlock this action to continue using Trailhead?

I use DE and when i try to verify a trailhead badge i have this error EEBEEYBM.

could you help me?



I have a requirement to write a trigger on AccountTeamMember object.
Unfortunately a apex trigger on AccountTeamMember object is not possible.
Here is a open Idea: https://success.salesforce.com/ideaView?id=08730000000YR8IAAW

So I designed a workaround to have a scheduled batch program.

In the batch apex class I am using getDeleted method to access deleted AccountTeamMember records. I am getting a GACK message at this line of code.

Database.GetDeletedResult deletedRecordsObj = Database.getDeleted('AccountTeamMember',Datetime.now().addHours(-1),Datetime.now());

below is the gack message:

System.UnexpectedException: UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 819619165-57530 (1151038934)

Any suggestions on how I might proceed?

Trying to test the App in Salesforce1 - When I click "App Launcher" and then Salesforce.com I get this error message: Python 2.5 is no longer available. Please refer to https://goo.gl/aESk5L for more information. 

Please help so I can move forward. Thank you!
I would like to connect my org to the external data using OData 4.0. I have been configured the External Data Source and automatically create External Object.
But there is a problem when creating record in the external object. After save button clicked, then error dialog appears, see image below:
User-added image
Actually the data that I inserted was successfully created, but I still meet this error.
FYI, I have been configured the primary key on OData configuration and MySQL database.
I have a custom object called 'Class_Allocation__c' and have a lookup field on this object called 'Related_Contact__c.  I need expert help to write a trigger on Class_Allocation__c to auto copy the contact Id into this field based on 'Student__Name__c' field on Class_Allocation__C and Student_id_from_Student_object__c (on contact)
  • September 15, 2017
  • Like
  • 1
Hello All,
I need to be able to update an Azure database from Salesforce.  Mainly for Cases and Lawyers, when cases or lawyers get updated I need to update the Azure DB as well.
I have seen the examples that talk about Azure to Salesforce, but I have not seen anything talking about Salesforce to Azure.
I have looked at both the Salesforce WCF and RestAPI https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/
But again these go from Azure to Salesforce.

Is it possible to go the other way?  What would be the best approch to this as I have seen many differnt approches to connecting.
We don't want any syncing of data, just to make a .NET call when Salesforce records get updates ect.. to update our Azure DB.
I am a brand new admin and I know nothing about the admin side of SalesForce.  Can someone explain to me how I can check if my org is using a single sign-on or HTTPS call outs?   I need to know if the default certificate retirement on 8/7/17 will affect my org before 8/7/17.   I've been reading about it but none of it makes sense to me.
when I was installing an app from appexchange, I got the oauth error. My account is the type of 30-day-free. 

Error code : 1800。

who can help me?
  • May 17, 2017
  • Like
  • 1
I have following scenario and want to set up partner community license.

1. Have profile Customer service rep.
2. He has access to only Order object.

i know we need to set Account as partner and then contacts need to be enabled as partner and then create user and assign the partner community profile.
But if i have no.of users and want to assign them Partner Community License  and Customer service repprofile, how i should proceed to implement this?

Could you please suggest?
I found an error in a Trailhead, thought I'd help anyone else with the same problem. While trying to solve the Using Events to Add Markers to the Map section of the Build an Account Geolocation App trailhead I kept receiving an error about a null value. Debugging the code I found that the map variable in AccountMapController.js was null. This is because the accounts were loading faster than the Leaflet.js libraries. To get around this I changed the accountsLoaded function to recursively check if the map existed only add markers once the map was an object:

   if(component.get("v.map") != null){
            var map = component.get("v.map");

            var accounts = event.getParam("accounts");
            for (var i=0; i<accounts.length; i++) {
                var account = accounts[i];
                var latLng = [account.Location__Latitude__s, account.Location__Longitude__s];
                L.marker(latLng, {account: account}).addTo(map);
            accountsLoaded(component, event, null); 


I am creating my first visualforce email. 

I am trying to list the Opportuntiy; owner, contact roles, and  opportuntiy team all on email template. I been able to figure out how to add the opportunity contact roles but I can't figure out how to add the Opportuntiy Owner and Opportuntiy team through the email code. 

Please see my visualforce code below. Thanks in Advance! 

<messaging:emailTemplate subject="Testing VF" recipientType="User" relatedToType="Opportunity">
<messaging:plainTextEmailBody >
This is testing the text section....
Opportunity Name: {!Relatedto.name}
Account: {!Relatedto.account.name}
Amount: {!Relatedto.amount}
Contact Roles for this Opportunity:
<apex:repeat value="{!RelatedTo.OpportunityContactRoles}" var="ContactRole">
{!ContactRole.Contact.Name} {!ContactRole.Contact.Email}
<apex:repeat var="team" value="{!relatedTo.opportunityteammembers}">


Hello Experts,

I have created excel workbook with help of VF page & XML Spreadsheet Reference. However I am not able to insert the company's logo in the first sheet. Can any one please suggest me how to insert an image in the sheet. Below is the VF code :

<apex:page controller="XYZ_controller" sidebar="false" showHeader="false"  contentType="application/vnd.ms-excel#{!object.Name__c}_Bid_Preview.xls" cache="true" action="{!changeProposalStatus}">
    <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
        <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
        <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">

<Worksheet ss:Name="Cover">
  <Column ss:Width="70" ss:StyleId="s_plain"/>
  <Column ss:Width="100" ss:StyleId="s_plain"/>
  <Column ss:Width="100" ss:StyleId="s_plain"/>
  <Column ss:Width="250" ss:StyleId="s_plain"/>

        <Cell  ss:Index="2" ss:StyleID="s9_confidential" ss:MergeAcross="3"><Data ss:Type="String">CONFIDENTIAL</Data></Cell>
<I NEED TO INSERT AN IMAGE HERE i.e COMPANY'S LOGO> (For testing, any logo will do)

<Row ss:AutoFitHeight="1">
        <Cell  ss:Index="2" ss:StyleID="s_cover_heading" ss:MergeAcross="3"><Data ss:Type="String">Test Data</Data></Cell>
        <Cell  ss:Index="2" ss:StyleID="s_cover_heading_lab" ss:MergeAcross="3"><Data ss:Type="String">Test Data</Data></Cell>
I request your swift support and help on this. Your efforts would be greatly appreciated. Thanks in advance...!!
  • July 21, 2016
  • Like
  • 1