Jade Global
CompanyForum Replies Created
-
Jade
MemberFebruary 18, 2019 at 7:15 am in reply to: What are best CRM platforms to use apart from Salesforce?There are multiple CRM platforms available now a days, to name them a few :
- Salesforce
- Microsoft CRM
- Zoho
- Sugar CRM
- Netsuite
-
Jade
MemberFebruary 18, 2019 at 7:13 am in reply to: Explain Custom Settings With the Help of Vf Page and Apex Class in Salesforce?Custom settings are like custom objects and in Salesforce there are two types of custom settings available :
- List Custom Settings
- Hierarchical Custom Settings
Please follow this article for more details.
Link : https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_customsettings.htm
-
Jade
MemberFebruary 14, 2019 at 7:07 am in reply to: How to Call Dataloader Automatically in Salesforce Admin?You can do it from the command line.
Please check : https://developer.salesforce.com/docs/atlas.en-us.dataLoader.meta/dataLoader/command_line_intro.htm
-
Jade
MemberFebruary 13, 2019 at 6:25 am in reply to: How to Write Salesforce Triggers for this Scenario?No Problem 🙂
-
Jade
MemberFebruary 12, 2019 at 8:30 am in reply to: How to Write Salesforce Triggers for this Scenario?Hi Pavan,
Above was a rough code to achieve the requirement.. Although that will also work in every scenario.
Please find more optimized code for the same -
public class ContactTriggerHelper { /* *call this method on before Insert and before upate of Contact * before insert - * Parameters - Trigger.New, null * * before update - * Parameters - Trigger.New, Trigger.oldMap * */ public static void contactDateUpdate(List<Contact> newList, Map<Id, Contact> oldMap){ Set<Id> accIds = new Set<Id>(); for(Contact con : newList){ if(con.AccountId != null){ accIds.add(con.AccountId); } } Map<Id, Account> accountMap = new Map<Id, Account>([SELECT Id, MyDate__c FROM Account WHERE Id IN: accIds]); for(Contact con : newList){ if(oldMap == null && accountMap.get(con.AccountId).MyDate__c != null ){ con.MyDate__c = accountMap.get(con.AccountId).MyDate__c.addMonths(1); }else if(oldMap != null && con.AccountId != null && (con.MyDate__c == null || con.MyDate__c != oldMap.get(con.Id).MyDate__c || con.MyDate__c != accountMap.get(con.AccountId).MyDate__c)){ con.MyDate__c = accountMap.get(con.AccountId).MyDate__c.addMonths(1); } } } }
Hope this will help.
Thanks
Avinash
- This reply was modified 5 years, 9 months ago by Jade.
-
Jade
MemberFebruary 12, 2019 at 7:48 am in reply to: How to Write Salesforce Triggers for this Scenario?Hi Pavan,
You can achieve it in before Insert and before update of the contact.
PFB the code for the same -
public class ContactTriggerHelper { /* *call this method on before Insert and before upate of Contact * before insert - * Parameters - Trigger.New, null * * before update - * Parameters - Trigger.New, Trigger.oldMap * */ public static void contactDateUpdate(List<Contact> newList, Map<Id, Contact> oldMap){ Map<Id, List<Contact>> accContactMap = new Map<Id, List<Contact>>(); for(Contact con : newList){ if(oldMap == null && con.AccountId != null){ if(accContactMap.containsKey(con.AccountId)){ accContactMap.get(con.AccountId).add(con); }else{ accContactMap.put(con.AccountId, new List<Contact>{con}); } }else if(oldMap != null && con.AccountId != null && (con.MyDate__c == null || con.MyDate__c != oldMap.get(con.Id).MyDate__c)){ if(accContactMap.containsKey(con.AccountId)){ accContactMap.get(con.AccountId).add(con); }else{ accContactMap.put(con.AccountId, new List<Contact>{con}); } } } Map<Id, Account> accountMap = new Map<Id, Account>([SELECT Id, MyDate__c FROM Account WHERE Id IN: accContactMap.keySet()]); for(Id accId : accContactMap.keySet()){ for(Contact con : accContactMap.get(accId)){ con.MyDate__c = accountMap.get(accId).MyDate__c.addMonths(1); } } } }
I hope this will help.
Thanks
Avinash
-
There are some prebuilt themes already available in Salesforce for the community. You can always customize and change the branding as per your business needs.
Please check out available features here: Salesforce Community
-
Jade
MemberFebruary 12, 2019 at 6:30 am in reply to: what values will be displayed in Trigger.new for the below Salesforce Events?Please check out this article for trigger context variables: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_context_variables.htm
-
Jade
MemberFebruary 12, 2019 at 6:28 am in reply to: How to Configure Microsoft office outlook and Salesforce?Please refer this article : https://help.salesforce.com/articleView?id=app_for_outlook_overview.htm&type=5
-
You can use the quote standard object in Salesforce and generate documents.
Please let us know how do you want to automate the process.
-
Hi Promila,
What is the issue that you see with case?
By populating " related to" field you should be able to link a task with case.
-
Jade
MemberFebruary 6, 2019 at 9:33 am in reply to: What to do if Salesforce Trigger is not working as expected?Triggers should be written in bulkified manner. Setup some debug logs and try to understand the flow of apex trigger along with the events.
-
Jade
MemberFebruary 6, 2019 at 9:30 am in reply to: Explain Web Server Authentication Flow Implementation in Salesforce.It seems like there is some problem with your connected app settings.
Can you please try with a fresh token ?
-
Jade
MemberFebruary 5, 2019 at 7:54 am in reply to: How can we build account hierarchy model using Salesforce Lightning Component?That's tricky and you will have to play with lightning: tree attribute.
Resources: https://developer.salesforce.com/docs/component-library/bundle/lightning:tree/examples
-
Jade
MemberFebruary 5, 2019 at 7:47 am in reply to: For what purpose do we use Debug Logs in Salesforce?In order to debug and understand the flow of automated processes in user perspective with system context.
You can debug Apex classes, Apex triggers, workflows, approval process and also define configure trace flags and debug levels.
Please check: https://help.salesforce.com/articleView?id=code_add_users_debug_log.htm&r=https%3A%2F%2Fwww.google.com%2F&type=5
-
Analytics lens provides a wider view of your data. It works with datasets and dashboards.
-
Jade
MemberFebruary 5, 2019 at 7:41 am in reply to: How to create Napili Template Community and how to find it in Salesforce?You will have to enable the community first of all, once done then you can create a community :
1. Setup -> Customize -> Communities -> All communities
2. Click the New Community button. Select the Napili template
3. Enter the name of the Community and save the records.
-
Jade
MemberFebruary 5, 2019 at 6:08 am in reply to: How to see view state size for non system administrator profiles?Under your user profile, enable Development Mode and View State.
You should be able to see it on the page you're working on; it will be in the bottom section (the code editor).
-
Jade
MemberJanuary 30, 2019 at 10:32 am in reply to: what is the difference between lightning custom buttons and classic custom buttons in Salesforce?Please check out following links :
It's just that in lightning version custom buttons are not supported, you will have to work on the workaround using lightning component.
-
Jade
MemberJanuary 30, 2019 at 10:29 am in reply to: How to refresh a standard page using remote action in Salesforce Vf Page?You can try reloading the window with callback method.
parent.location.reload();
For any issues setup console logs to understand the flow.
-
Jade
MemberJanuary 30, 2019 at 10:26 am in reply to: how to count open cases against owner id by map in Salesforce?You can also explore report features here. Summary report on case to display only open cases and then group it by owner names.
-
Jade
MemberJanuary 30, 2019 at 10:23 am in reply to: How are lead assignment rules executed in Salesforce?Hi Anjali,
Now you should be able to understand that how lead assignment rules work in Salesforce.
Let us understand that when lead assignment rules get executed in Salesforce :
- The original record is loaded from the database (or initialized for an insert statement)
2. The new record field values are loaded from the request and overwrite the old values
3. All before triggers execute (TRIGGERS)
4. System validation occurs, such as verifying that all required fields have a non-null value, and running any user-defined validation rules (VALIDATIONS)
5. The record is saved to the database, but not yet committed
6. All after triggers execute
7. Assignment rules execute
8. Auto-response rules execute
9. Workflow rules execute (WORKFLOW)
10. If there are workflow field updates, the record is updated again
11. If the record was updated with workflow field updates, before and after triggers fire one more time (and only one more time)
12. Escalation rules execute
13. All DML operations are committed to the database
14. Post-commit logic executes, such as sending email
Thanks
- The original record is loaded from the database (or initialized for an insert statement)
-
Jade
MemberJanuary 29, 2019 at 10:51 am in reply to: Explain Inline error message in input field inside Salesforce Lightning Table.You will have to play around with lightning: input here.
Reference : https://salesforce.stackexchange.com/questions/160160/show-custom-error-on-lightninginput
-
Jade
MemberJanuary 29, 2019 at 6:36 am in reply to: Which marker will be clicked in my JS controller if I have a Salesforce Account Object as a Marker on Google Maps?Hi Ratnakar,
You can try lightning map here. Please check out : https://developer.salesforce.com/docs/component-library/bundle/lightning:map/example
-
Jade
MemberJanuary 29, 2019 at 6:19 am in reply to: What are case routing techniques in Salesforce?For Case Routing, you can explore Case Assignment Rules.
Some of the best practices are :
2) Define a default case owner for last entry of case assignment rules so that in case if a case doesn't meet all the entries the case should be assigned to some user.