Skip to main content Stream TDX Bengaluru on Salesforce+. Start learning the critical skills you need to build and deploy trusted autonomous agents with Agentforce. Register for free.

Feed

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

I need to temporarily bypass a validation rule so a Flow can update record values.  I'm trying to use this article:  https://admin.salesforce.com/blog/2022/how-i-solved-it-bypass-validation-rules-in-flows

 

When I do this in a sandbox, the time reference the article uses !$Flow.CurrentDateTime and NOW() both return GMT instead of the Users local time.  I did some testing and I get the same results in Production.  Is there a way (without Apex) to get the Users local time in a Flow? 

I followed the suggestions in this article and they didn't work for me: 

https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A8qp4SAB

 

 

Please let me know if there is another way to temporarily bypass a validation rule. 

 

 

4 answers
  1. Apr 11, 9:35 PM

    I have a custom Checkbox field Bypass_VR__c default value = Unchecked  

     

    Then I add and exemption in my Validation Rule Formula  

     

    Bypass_VR__c = FALSE 

     

    Then in my Flow in the FIRST Step I set  

    {!$Record.VR_Bypass__c} to TRUE

     

    in the NEXT Step I do the rest of my updates 

     

    Then in my LAST Step I reset   

     

    {!$Record.VR_Bypass__c} to FALSE
0/9000

Hola, 

 

Ayuda, estoy intentando pasar el reto de este modulo pero no me lo permite, me muestra mensaje "

No se encontró el reporte denominado “Reporte de origen de los prospectos” en la carpeta “Reportes públicos”, pero voy a la carpeta de Reportes públicos y allí lo veo 

Reto Crear informes con el Generador de informes

anteriormente para otra actividad me aconsejaron cambiar el idioma:  

idioma.jpgAgradezco me indiquen o me aconsejen que mas ajuste realizar para pasar el reto.

Gracias y quedo atenta.

 

 

#Trailhead Challenges

0/9000

So this is the current validation rule set up that throws the error: 

 

/*this is a comprehensive list of all text values we want to allow in the "Division" field*/ 

 

if(Division="Lightcast",false, 

 

/*Public Sector divisions*/ 

if(Division="Public Sector",false, 

if(Division="EDO",false, 

if(Division="National Public Sector",false, 

if(Division="State and Local Public Sector",false, 

if(Division="Workforce",false, 

 

/*Education divisions*/ 

if(Division="Education",false, 

if(Division="Colleges",false, 

if(Division="EDU Partnerships",false, 

if(Division="University",false, 

 

/*Global divisions*/ 

if(Division="Global",false, 

 

/*Enterprise divisions*/ 

if(Division="Enterprise",false, 

if(Division="Enterprise Carlone",false, 

if(Division="Enterprise Semmes",false, 

if(Division="Enterprise Global",false, 

if(Division="Enterprise Mid Market",false,true)))))))))))))))) 

 

I'm attempting to re-write it to make it somewhat more complex, but perhaps less clunky. We want the Division field on users to sort of function as if it were a dependent picklist related to the Lightcast Market Vertical field. If we choose "Public Sector" for a user in that Lightcast Market Vertical field, then we want the ONLY acceptable text options in the Division field to be one of the 5 Public Sector text options. Similarly, if we choose "Education" in the Lightcast Market Vertical field, then we want the validation rule to only allow text to be one of those 4 relevant Education text options. Etc. Hope that makes sense. Any suggestions?  

 

#Trailhead Challenges

0/9000

Scenario 

 

When phone field is updated in Account, if there is related contacts, the phone field in contact should also get updated with the same phone number as the account 

 

Trigger

 

trigger AccountTrigger on Account (after update) 

    

    if (Trigger.isAfter) 

    { 

        if(Trigger.isUpdate) 

        {

            AccountHelperClass.updaterelatedcontact(Trigger.oldMap , Trigger.newMap); 

        } 

    } 

     

Class

 

public static void updaterelatedcontact(Map<Id,Account> accoldMap , Map<Id,Account> accnewMap) 

    { 

        if(accoldMap.get('Phone') != accnewMap.get('Phone')) 

        { 

            List<Contact> cclist = new List<Contact>([SELECT Id,Phone FROM Contact WHERE AccountId IN : accnewMap.keyset()]); 

             

            if(!cclist.isEmpty()) 

            { 

                for(Contact cc : cclist) 

                { 

                    cc.Phone = accnewMap.get(cc.Id).Phone; 

                     

                } 

                 

            } 

        }         

    } 

 

Error

 

  • AccountTrigger: execution of AfterUpdate caused by: System.StringException: Invalid id: Phone External entry point Trigger.AccountTrigger: line 7, column 1

 

Can some one please help to resolve this please. I havenot written any test class for this. I am just trying to learn apex

0/9000

Hello fellow Trailblazers! 

 

I created a Service Agent using Gen AI. I'm running into issues where it can't find my CRM data. I went to add standard actions to a topic, like Identify Record, and it's not available. I've made sure the EinsteinServiceAgent user has access to Copilot permission as a user, but it's still not appearing. Any insights or tips I can try? 

 

#Agentforce

1 answer
  1. Today, 4:01 PM

    Hi @Hannah Raby

     

    Currently, Agentforce Service Agent doesn't support these standard actions:

    • Identify Object by Name
    • Identify Record by Name
    • Query Records
    • Query Records With Aggregate
    • Summarize Record
    • Draft or Revise Email
    • Update Record Fields
    • Extract Fields And Values From User Input

    For more details, please refer to the following help articles : 

    https://help.salesforce.com/s/articleView?id=ai.copilot_actions_ref_agentforce_service_agent.htm&type=5

     

    https://help.salesforce.com/s/articleView?id=ai.service_agent_considerations.htm&type=5

     

     

    Hope this helps. Thanks!

0/9000

Bonjour,  Je souhaite mettre en place un flux de notifications pour informer des utilisateurs du changement de statut des opportunités. Ces utilisateurs sont le propriétaire du projet mais également des utilisateurs externes à l'équipe du projet.  Je n'arrive pas à configurer l'attribution pour identifier le groupe public que j'ai créé.  Concrètement, je ne sais pas quoi saisir dans le champ valeur sur la 2eme capture pour spécifier l'ID d'un groupe public.  Merci d'avance pour votre aide ;)   

0/9000

Hi Everyone, 

 

I have a screen flow that displays a data table of contacts along with their phone numbers. I would like users to be able to click on a phone number to initiate a call using omni-channel. Currently, when they click a phone number, a popup appears asking them to choose which app to use.  

 

How can I configure it so that it functions the same way as it does within a case? In a case, clicking a phone number directly places the call without any additional prompts.

0/9000