Skip to main content The last day to register for a Salesforce or Tableau exam is June 30th. Learn more about the new Salesforce certification experience coming July 21st.

Feed

Connect with fellow Trailblazers. Ask and answer questions to build your skills and network.

Hello! We have a global marketing team that leverages account engagement for internal and external email communications.  Before they send out any global notifications, they create an email per language, and send it out to the corresponding contacts.  The ask is, is there a way to create 1 email template that when sent to a list of customers, the customer receives the email translated in their country/language preference?  I appreciate any and all insight, it has been a few years since I have worked with account engagement.  Thanks!

2 answers
  1. Jun 23, 6:12 PM

    @Cameron Maier

    Yes, the recipient will see their version of the content in their preferred language with 1 email via dynamic content. 

     

    While creating the dynamic content block, you need to select the field. Just make sure this field is available and contains values, example : consider Language as field then Language = French - block1, Language = Spanish - block2, so on. Also, there is a default block (where you add English as default content). If a record doesn’t have a value in the Language field, the default block will be displayed. 

0/9000

How field dependencies work in Smart Lists? I have all options available but after I click the one that is not dependent I have an error. Is it possible to display only correct picklist values?

6 answers
  1. Today, 9:26 AM

    @Abhishek R no, that's not a thing. I have field dependencies in two picklist fields. When I am selecting one of the values from controlling field, I see all values on dependent field, while I should see only the ones selected in dependencies. 

0/9000

Hi Everyone I’ve created an email service to bring the emails received on sales.automation@xyz.com into my Salesforce org. However, this sales.automation@xyz.com

 address is a shared mailbox, and I don’t have access to its settings. I only see it in my Outlook as a inbox as you can see in the provided Screenshot. 

 

I had created a rule that if an email is sent to sales.automation@xyz.com

, it should be forwarded, but the rule is not being executed. 

 

Does anyone know if this is even possible? 

 

FYI: I have already informed the IT department, since they have access to the mailbox settings. But I’m still not sure how this will be resolved. 

 

If anyone has an idea, please guide me. 

 

#Trailhead Challenges  #Salesforce Developer  #Email

 

Forwarding emails from Shared Mailbox

 

 

0/9000

Hi All, 

 

We have few Apex class in the salesforce org that was created by previous client, and I am getting error "Constructor not defined: [DoubleRange].<Constructor>(Decimal, Decimal)" 

 

I have the apex class with me, may I get the help in regarding this.

/* ============================================================

* This code is part of the "apex-lang" open source project avaiable at:

*

* http://code.google.com/p/apex-lang/

*

* This code is licensed under the Apache License, Version 2.0. You may obtain a

* copy of the License at:

*

* http://www.apache.org/licenses/LICENSE-2.0

* ============================================================

*/

@IsTest

private class DoubleRangeTest {

private static testmethod void testContains(){

assertContains(new DoubleRange(0),0,true);

assertContains(new DoubleRange(-1,1),-1.1,false);

assertContains(new DoubleRange(-1,1),-0.5,true);

assertContains(new DoubleRange(-1,1),0,true);

assertContains(new DoubleRange(-1,1),0.5,true);

assertContains(new DoubleRange(-1,1),1.1,false);

}

private static void assertContains(DoubleRange range1, Double aNumber, Boolean expected){

Boolean actual = range1.contains(aNumber);

System.assert(actual==expected, 'DoubleRange(' + range1.toAString()

+ ').contains(' + aNumber + ') returned ' + actual);

}

private static testmethod void testContainsRange(){

assertContainsRange(new DoubleRange(0),new DoubleRange(0),true);

assertContainsRange(new DoubleRange(0,1),new DoubleRange(0,1),true);

assertContainsRange(new DoubleRange(1.5,2.5),new DoubleRange(4,5),false);

assertContainsRange(new DoubleRange(1.5,2.5),new DoubleRange(2.5,5),false);

assertContainsRange(new DoubleRange(1.5,2.5),new DoubleRange(1.5,2.5),true);

assertContainsRange(new DoubleRange(1.5,2.5),new DoubleRange(2,2.1),true);

}

private static void assertContainsRange(DoubleRange range1, DoubleRange range2, Boolean expected){

Boolean actual = range1.contains(range2);

System.assert(actual==expected, 'DoubleRange(' + range1.toAString()

+ ').contains(' + (range2==null ? '' : range2.toAString()) + ') returned ' + actual);

}

private static testmethod void testOverlaps(){

assertOverlaps(new DoubleRange(0),new DoubleRange(0),true);

assertOverlaps(new DoubleRange(-1,1),new DoubleRange(0,1),true);

assertOverlaps(new DoubleRange(-1,1),new DoubleRange(1.1,1.5),false);

assertOverlaps(new DoubleRange(-1,1),new DoubleRange(0.5,1.5),true);

assertOverlaps(new DoubleRange(-1,1),new DoubleRange(-1.5,-0.5),true);

assertOverlaps(new DoubleRange(-1,1),new DoubleRange(-1.5,-1.1),false);

}

private static void assertOverlaps(DoubleRange range1, DoubleRange range2, Boolean expected){

Boolean actual = range1.overlaps(range2);

System.assert(actual==expected, 'DoubleRange(' + range1.toAString()

+ ').overlaps(' + (range2==null ? '' : range2.toAString()) + ') returned ' + actual);

}

private static testmethod void testMin(){

assertMin(new DoubleRange(0),0);

assertMin(new DoubleRange(-1.5,1.5),-1.5);

assertMin(new DoubleRange(1.5,-1.5),-1.5);

}

private static void assertMin(DoubleRange range1, Double expected){

Double actual = range1.min();

System.assert(actual==expected, 'DoubleRange(' + range1.toAString()

+ ').getMinimum() returned ' + actual);

}

private static testmethod void testMax(){

assertMax(new DoubleRange(0),0);

assertMax(new DoubleRange(-1.5,1.5),1.5);

assertMax(new DoubleRange(1.5,-1.5),1.5);

}

private static void assertMax(DoubleRange range1, Double expected){

Double actual = range1.max();

System.assert(actual==expected, 'DoubleRange(' + range1.toAString()

+ ').getMaximum() returned ' + actual);

}

private static testmethod void testNullsConstructor1(){

Boolean exceptionCaught = false;

try{ new DoubleRange(null); }catch(IllegalArgumentException e){ exceptionCaught = true; }

System.assert(exceptionCaught,'Call to \'new DoubleRange(null)\' did not throw IllegalArgumentException');

}

private static testmethod void testNullsConstructor2(){

Boolean exceptionCaught = false;

try{ new DoubleRange(null,null); }catch(IllegalArgumentException e){ exceptionCaught = true; }

System.assert(exceptionCaught,'Call to \'new DoubleRange(null,null)\' did not throw IllegalArgumentException');

exceptionCaught = false;

try{ new DoubleRange(null,0); }catch(IllegalArgumentException e){ exceptionCaught = true; }

System.assert(exceptionCaught,'Call to \'new DoubleRange(null,0)\' did not throw IllegalArgumentException');

exceptionCaught = false;

try{ new DoubleRange(0,null); }catch(IllegalArgumentException e){ exceptionCaught = true; }

System.assert(exceptionCaught,'Call to \'new DoubleRange(0,null)\' did not throw IllegalArgumentException');

}

}

 

 

Apex Class are below V45 for ICU Locale

 

 

 

#Salesforce Developer  #ICU Locale Formats  #Apex

1 answer
  1. Today, 9:21 AM

    hi @Abhishek Kumar Singh

     

    What is DoubleRange ? Is it defined in main class? 

     

    If defined then it should be like, 

     

    className.DoubleRange 

     

    Kindly check it once. 

     

    Thanks

0/9000

Hello - I recently passed the Slack Certified Admin exam. It is live and showing on slackcertified. The email address was already added on my email accounts on Trailblazer. However, it did not pull in. Has anyone else had this issue? Not sure if I need to disconnect and reconnect the email but hesitant to do that since I have a few playgrounds on that email. 

4 answers
  1. Today, 9:20 AM

     Passed the Slack Administrator exam! Sharing my experience and tips for success, including how PassCertHub helped me prepare effectively with accurate and reliable study materials. 

0/9000

We gebruiken Google Authenticator al MFA voor Salesforce. Deze werkt wel voor de browser toegang. Wanneer we inloggen in de mobile app op de telefoon, kan er worden ingelogd met enkel het wachtwoord of pincode zónder MFA. Hoe stel ik MFA voor de mobile app in?  

 

#Trailhead Challenges

5 answers
0/9000

I configured a JWT validation policy in API manager, I am using same from 2 years but its throwing 403 error now, because the backend is not accepting request if we send request method as Head. 

 

Backend confirmed they are getting request with head method. Can some clarify if our jwks URL uses HEAD method sometimes, why it's happening suddenly after a year of deployment

0/9000
I have a report on my dashboard that shows each Sales Rep's billing for the current month in one column along with their target variance in a second column. The bottom of the table then totals both columns with the intention being that it will shows the whole companies billing for the current month along with the overall target variance. The problem is that Sales Reps don't show up on the report until they've put an order on for that month. As such, for the first week of each month the overall target variance total isn't accurate as it doesn't take into account all of our individual Sales Rep's variances. 

 

Does anybody have any ideas on how I can have all of my Sales Reps appear on the report even if they haven't created an Order yet that month?

 

Thanks!
4 answers
0/9000

As per my knowledge, we have 4 options to store an Address in Salesforce 

 

1: Use the Standard Address Compound Data Type 

2: Add Extra Fields on an sObject or Create a Custom M:M Relation sObject 

3: Use the Custom Address Compund Meta Data Type 

4: Use the Location and Address sObjects 

 

We have a requirement for adding multiple fields to the Address Entity 

- County 

- County Code 

- Municipal 

- Municipal Code 

- Cadastral Unit 

- Property Unit 

- Utility Unit 

 

I know we can do this using either of the above, however, I would like to get some experiences, especially from Scandinavian Customers, how these were implemented with Pros & Cons. 

 

Right Now I'm looking into Location and Address to enable most of the Properties we need for further Design Enhancements in Flows, Integrations, LWCs and similar. 

 

Another Key is that we need multiple Address Types for each Business Relation ( Account ) 

Examples are: 

- Delivery Address 

- Pickup Address 

- Invoice Address 

- Return Address 

- Warehouse Address 

- Postal Address 

- Visiting Address 

And Similar. Within these we may also have multiple subsidiaries and parents since an Organization may be International and have a Complex Hierarchy. 

 

Thank you in advance. 

 

#Salesforce Developer

0/9000

I have worked on the playground "Configure Agentforce for Service" an have completed. but unable do the  "verify step to earn 100 points" 

 

#Trailhead Challenges

4 answers
0/9000