Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client profile and UI changes #282

Merged
merged 2 commits into from
Jul 15, 2021
Merged

Conversation

ShashiChettepu
Copy link
Contributor

  1. Get Recommendations without profile builder
  2. Batch job fix for "Email;Sms"
  3. UI enhancements for refer "Mobile Phone Carrier"

Critical Changes

Changes

Issues Closed

1. Get Recommendations without profile builder
2. Batch job fix for "Email;Sms"
3. UI enhancements for refer "Mobile Phone Carrier"
@@ -262,7 +262,9 @@ public with sharing class EmailService {
}
// update any tasks that have been completed
if (!tasksToUpdate.isEmpty()) {
update Security.stripInaccessible(AccessType.UPDATABLE, tasksToUpdate).getRecords();
map<id,Task> tskMap = new map<id,Task>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the need of Map<Id, Task> in this use case? The list variable can be directly used instead of adding to a map.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List will contain a duplicate id and running to the "System.ListException: Duplicate id in list error"
https://salesforcescool.blogspot.com/2018/11/systemlistexception-duplicate-id-in.html?m=1

// hard filters are currently Age
public static list<Service__c> primaryQuery(Client_Profile__c client, String filterList) {
if(Schema.Client_Profile__c.SObjectType == Id.valueOf(client.id).getSobjectType()) {
//decimal age = calculateAge(client.Date_Of_Birth__c);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented code.

Copy link
Contributor

@anilpilakavv anilpilakavv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the review comments.

Removing the commented line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants