Skip to main content

Feed

Connettiti con gli altri Trailblazer. Fai domande e dai risposte per ampliare le tue competenze e costruire la tua rete.
0/9000
0/9000

some of the rep wantes to see their territory data on Pulse metrics. 

Is it possible to do this on Tableau Pulse ? 

or is their any capability of pulse we can achieve. 

can you share a scenario or solution if I can achieve this? 

 

#Tableau Desktop & Web Authoring  #Tableau Pulse

8 risposte
  1. Oggi, alle 12:58

    Good catch, Diego - you are right, thanks for the correction. On a published data source, non-authors cannot impersonate via 'Filter as User', so that test only works for the author editing the source in Tableau Desktop, not on the published copy. 

     

    So for Himshikha the fix stands: grant that user View + Connect on the published data source. To verify the USERNAME() mapping without impersonation, either test it in Tableau Desktop as the source author (where Filter as User is available), or simply drop USERNAME() onto a sheet and have the actual rep open it - whatever value shows must exist in your Territory Owner / entitlement data character-for-character. And if you are on a Virtual Connection data policy, its editor has a 'test as user' preview built in. 

     

    Thanks again Diego :)

0/9000
Dylan Platz ha fatto una domanda in * Salesforce Mobile *

Hi all, 

 

I've been Googling and not exactly finding any specific answers, so I'm curious if anyone else has tried to get rid of the swipe up "Recent Activity" timeline that shows when viewing an Account in Salesforce Mobile?  

 

It's a nice feature to have, but the way we need to show some custom Activity Reports conflicts slightly, so I'd like to either change what information displays in that swipe up OR just remove it completely. Anyone else ever try this? 

 

Thank you! 

Dylan

3 risposte
  1. Oggi, alle 12:56

    Btw How did you find the Attribute name? Will you please share it, will be more helpful!

0/9000
Krzysztof Zimny ha fatto una domanda in * MuleSoft *

Hi, the current version of the SAP JCo connector enforces the name of the containing jar at runtime. 

This will lead to exceptions, if it doesn't match the name (sapjco3.jar).

JCo initialization failed with java.lang.ExceptionInInitializerError: Illegal JCo archive "com.sap.conn.jco.sapjco3-3.1.13.jar".

It is not allowed to rename or repackage the original archive "sapjco3.jar".

Caused by: java.lang.ExceptionInInitializerError: JCo initialization failed with java.lang.ExceptionInInitializerError:

Illegal JCo archive "com.sap.conn.jco.sapjco3-3.1.13.jar". It is not allowed to rename or repackage the original archive "sapjco3.jar".

 

This is a known issue described in the documentation: 

-

https://docs.mulesoft.com/sap-connector/latest/sap-connector-troubleshooting#jco-renaming-conflicts

 

-

https://help.salesforce.com/s/articleView?id=001117810&type=1

 

 

To resolve this error, the maven-shade-plugin should be added to pom.xml which relocate (rewrite) packages to avoid classpath conflicts. Unfortunately, this approach works only at runtime, but not for MUnit tests. Does anyone know how to configure the pom.xml file for the MUnit tests?  

 

5 risposte
  1. Oggi, alle 12:55

    There is a solution.

    • Define two profiles in the pom.xml file.
    • Profile 1: runtime -> for the runtime environment, Profile 2: test -> for MUnit tests.
    • Load the JCo dependencies for the runtime profile via Maven and use the maven-shade-plugin.
    • For the MUnit tests, the JCo files (sapjco3.jar, sapidoc3.jar, sapjco3.dll, and libsapjco3.so) must be referenced from or downloaded from an artifact repository. They should then be referenced using the attributes <scope>system</scope> and <systemPath>${saplibs}/sapjco3.jar</systemPath>.
    • This solution works both locally in Anypoint Studio and on the server side through a CI/CD pipeline.
0/9000

I have a flow that guides users through a manual lead conversion, when converting to an opportunity they are able to select the opportunity record type that they want to create.  However the flow will give them the option of every available opportunity record type, not just the ones they have permissions for.  Is there a declarative solution to this , to only show the ones they have permissions for, without using an apex class? 

 

#Flow  #Record Types  #Permissionset

1 risposta
  1. Oggi, alle 12:54

    Hi Carolyn - the catch is that RecordType is metadata every user can read, so a Get Records or Record Choice Set on RecordType always returns them all, regardless of who is assigned. There is no native 'filter record types by assignment' in Flow. Two routes that need no Apex you write or maintain: 

     

    1. UnofficialSF's 'User-Aware Record Type Picker for Flows' - a free installable screen component built for exactly this; it shows only the record types the running user is actually assigned. Cleanest option if you are OK installing a component. 

     

    2. Pure-native with Custom Permissions - create one Custom Permission per opportunity record type (or per group), assign each on the same permission set that grants that record type, then set each choice's component visibility (or a Decision) on the running user having that permission via Permission.YourCustomPermission. 100% declarative; the trade-off is you maintain the mapping, so it fits best when the record-type count is small. 

     

    Tip: also run the screen flow in User Mode so field/record access is enforced - just note User Mode will not filter the record-type list itself, since that is assignment, not record access. 

     

    If this helps, please mark it as the Best Answer so it helps the next person - thanks :)

0/9000
Deepak Sharma ha fatto una domanda in #Apex

Hi Trailblazers, 

 

In an Apex implementation, I need to group and process records dynamically and I’m evaluating nested collection approaches such as:

List<List<String>> groupedData;

and

Map<String, List<String>> groupedData;

For record grouping, Map<Key, List<T>> seems more practical, but I’d like to understand:

  • When would List<List<T>> be a better choice in a real-time project?
  • Are there any performance or governor-limit considerations?
  • What approach do you generally prefer when grouping SOQL results?

Would appreciate any real-world examples or best practices.

Thanks !!.  

 

#Apex  #Salesforce Developer  #Trailhead  #TrailblazerCommunity

1 risposta
  1. Oggi, alle 12:51

    Hi Deepak - for grouping, Map<Key, List<T>> is almost always the right call. List<List<T>> is rarely right for grouping because you lose the key (no O(1) lookup - you would have to scan to find a group). 

     

    When to prefer each: 

    - Map<Key, List<T>>: anytime you group BY something, e.g. Map<Id, List<Contact>> keyed by AccountId. O(1) lookup, keys auto-dedup, and it is the bulkification backbone in triggers. 

    - List<List<T>>: only when there is no meaningful key and the split is positional - fixed-size chunks for a callout that takes N records per request, or partitioning work across async jobs. You just iterate the sublists, never look up by key. 

     

    Governor / performance: 

    - The limit that actually bites is HEAP (6 MB sync / 12 MB async), driven by how many records you hold in memory, not the collection shape. Map's key overhead is negligible. 

    - Map's real win is avoiding nested loops: correlating two lists via a Map is O(n); scanning a List<List<>> to find a group re-introduces O(n-squared). That is the real consideration. 

    - Neither changes SOQL/DML limits - those depend on bulkifying, which you do either way. 

     

    Pattern I use for grouping SOQL results: 

    Map<Id, List<Contact>> byAcct = new Map<Id, List<Contact>>(); 

    for (Contact c : [SELECT Id, AccountId FROM Contact]) { 

      if (!byAcct.containsKey(c.AccountId)) byAcct.put(c.AccountId, new List<Contact>()); 

      byAcct.get(c.AccountId).add(c); 

     

    Two more: for a true parent-child group, a subquery like [SELECT Id, (SELECT Id FROM Contacts) FROM Account] groups it at the query level - often cleaner. And for two dimensions, Map<Key1, Map<Key2, List<T>>> stays keyed and O(1). 

     

    Net: default to Map<Key, List<T>> for grouping; reach for List<List<T>> only for keyless chunking. 

     

    If this helps, please mark it as the Best Answer so it helps the next person - thanks :)

0/9000

Hi - I have a user who last logged on in early July and doesn't remember their password. 

I have sent them a password reset email but then they get the message below, but they don't get an email or SMS to the number on their profile with the verification code. When they used Authenticator they were asked for the two-word key.   

What should they be doing to get back on to the system?

Problem with password reset

0/9000

Hello, 

 

I am trying to enable the Visual Editor for the Salesforce Interaction SDK Launcher, both directly and from within Marketing Cloud Personalization. However, in both scenarios, we are encountering the following Content Security Policy (CSP) error:

frame-ancestors 'none'

As a result, the Visual Editor page continues to load indefinitely and does not open successfully. Please refer to the attached screenshot for reference. 

 

Has anyone encountered this issue before? If so, could you please advise on the resolution? We are unable to find any available setting to modify the Content Security Policy, and would appreciate any guidance on how to address this issue. 

 

 @Girish Ramaiah

1 risposta
  1. Oggi, alle 12:44

    Add Evergage/Personalization domains to your site's CSP

    The fix is on your website's server/header config. Ask whoever manages your site's CSP headers to allow the Personalization domains — commonly

    cdn.evergage.com, your account-specific *.evergage.com or *.exacttarget.com endpoints, and the Visual Editor's own asset domains.
0/9000

Good Morning, 

 

I am working on completing the Create Energy Audit Records section of the Admin Beginner/Lightning Experience Customization/Set Up Your Org) and I am experiencing trouble with "saving" the Energy Audit Record.  I've followed the instructions as indicated within the lesson. However, I continue to receive a notification that states, "We hit a snag. Please review the errors on this page. We couldn't save  your work. Please refresh the page and try again." 

 

I have refreshed, reviewed the page, ensured all "required" fields were completed. However I am unable to proceed or created any additional records as indicated. 

 

Please advise. 

Unable to Create Energy Audit Records

 

 

 

#Trailhead Challenges

2 risposte
  1. Oggi, alle 12:37

    I am still having issues after completing the above. When I exit and re-enter the create screen it is asking me to input an Energy Audit Name, which is included. However, still unable to save the record.

0/9000