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.
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 case of these scenarios please cross check the below things.
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