Please like,follow,bookmark,subscribe this site to receive daily updates.
LinkedIn Group - Srinivas4sfdc (I Love Coding... You?)
FaceBook Page - I Love Coding. You?
Please like,follow,bookmark,subscribe this site to receive daily updates.
The use case here is I want to check whether case email is available given in the list of email ids or not? If it's present in the list it will return true else it will return false.
IF(
FIND(Your Email Filed,'test@gmail.com,man.6233@gmail.com,hello@haptik.co,pk.kk@gmail.com,support@jugnoo.in,msj@gmail.com,mailer-daemon@amazonses.com,sales@kks.com,l.dyj@licindia.com') > 0,TRUE,FALSE
)
Example:
IF(
FIND(SuppliedEMail,'test@gmail.com,man.6233@gmail.com,hello@haptik.co,pk.kk@gmail.com,support@jugnoo.in,msj@gmail.com,mailer-daemon@amazonses.com,sales@kks.com,l.dyj@licindia.com') > 0,TRUE,FALSE )
We have couple of outbound messages linked under the workflow rules and all these outbound message will send some of custom objects data and standard objects data to external systems everytime any kind of DML operation happens on these objects.
Everything got set up and working as expected. But recently we have come across a situation where all the outbound messages are pushing data from sandboxes to same external systems assuming that we forgot to disable these workflow rules in sandbox before we activate it and somehow we missed to change the outbound messages end point from production to sandbox.
Because of all these things the sandbox data got messed up with the production data. So, we started exploring the options how can we stop all these Workflow rules automatically in sandbox or can we change the endpoint from production to stage automatically after refreshing the sandbox.
As a solution we come across multiple options but as a quick fix we have chosen to use the below solution.
1. Identify the environment like sandbox or production.
Scenario:
Let's assume we have group of users assigned under the omni channel for handling of incoming chat request.
How can we set the different maximum chat limit for user basis on experience. Ex For new joiner we want to setup of maximum cap as 5 and others as 7 chats.
Solution:
Ideally in omni channel the agent capacity and which Omni-channels features can be accessed like auto decline or auto accept of the work items can be performed using the "Presence Configuration" settings.
So in our case also we can create two presence configurations ,one for the new joiners and second for the others. Under the new joiners configuration we will add all the new joiners so when they logged into Omni channel the chat capacity will be picked up from here automatically.
If your trying to know the starting date of the week for the given date in salesforce please use the below 2 formats.
Using the Formula Fields:
The return type of the formula is date.
(Yourdatefield__c- MOD(Yourdatefield__c- DATE(1900, 1, 7), 7))
Using the Apex:
In case of apex we can use the salesforce in built date function called toStartofWeek() which returns the start date of week basis on the user locale.
Date startWeek = Yourdatefield__c.toStartofWeek();Salesforce Data loader is a tool which will be used to insert, update, delete, export and hard delete salesforce objects data. As we know in recent times Log4j vulnerability caused a lot of issues on multiple systems.
Basically to run the data loader we must have JDK setup on your systems so a part of the this vulnerability data loader has started facing some issues. So, Salesforce has suggested to delete the existing data loader and to set up this again after downloading the latest version from salesforce setup which is not have these issues.
While setting up this i have come across some of the java/jdk related issues and it's been sorted out with the help of the articles mentioned below. If anyone of facing same issue related to java/jdk setup you can refer the below posts for step by step process.
How to Install Azul Zulu OpenJDK Version 11 on Windows for data loader?
In previous post we have clearly discussed about all the scenarios why all these emails comes .In this post we will be discussing how to stop receiving these emails from salesforce.
Please follow below steps to update the config.
Have you ever started receiving an email from Salesforce Support email ,the from address would be support@salesforce.com <support@salesforce.com> whenever there is an error while creating an email-to-case in salesforce.
One of the sample error email looks like as below
You will receive this error while your deploying the Einstein bots from one org to another org.
When you encounter this type of issue please cross check whether did you added the what version of the bot has to be deployed is added in the change set or not.
If not added just click on the view dependencies section of the change set and check for the bot version type and select the corresponding version.
In Validation Rules/VF Pages $Permission.CustomPermissionApiName Example: $Permission.Srinivas_4SFDC
Boolean enabSet = System.FeatureManagement.checkPermission('Custom Permission APi Name');
System.debug('enabSet..'+enabSet);
Boolean enabSet = System.FeatureManagement.checkPermission('SreeTest'); System.debug('enabSet..'+enabSet);
Hope this helps you..Enjoy..!
AND( NOT(ISNEW()), NOT(OR($Profile.Name == 'System Administrator', $User.Id == OwnerId)) )
Hope this helps you..Enjoy..!
public class UserHistoryProcessor { @InvocableMethod public static void updateUserHistory(List<Id> userIds) { //related code here } }