• Praveen Jha
  • NEWBIE
  • 55 Points
  • Member since 2013
  • Salesforce Consultant
  • Persistent System


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 26
    Questions
  • 35
    Replies
There are so many article type i have created like "Release info", "General". Is it possible to Display that article type  in article column view . 
how can we  import the documents from other places and import them into SF 
We want the users to be able to manage the subscriptions to the alerts themselves. I think the best option is to have a couple of checkboxes in the Portal UI which map to the corresponding checkboxes in the User record.

There are a couple of ways we could do this:

1)      Add the checkboxes to the Email Settings page (which has “Choose to receive  Community emails so user don’t miss important updates”.

2)      Add a new “Notifications” table to the portal (e.g. Home, Cases, Subscriptions,Notifications, Contacts, Accounts, Reports.
Please assist by pointing me in the right direction, I’d appreciate it.
In case there is many public/private comment. Is there any way to filtering  so that user can see public/private comment separately. 
I have one custom field "Notify me on new release" on user object whose data type is checkbox. I have added user to public group  based on role e.g. "Partner community manager"  . There are 50 users belongs to  "partner community manager" and i want to remove any one user from the group when i deselect "notify me on new relese " checkbox field in user detail page. .Right now i can add or remove  user to public group "alert" through below code. 

trigger AddingtoAlertPublicgroup on User (after insert,after Update) {
   List<GroupMember> grpMemlist = new List<GroupMember>();
    Set<Id> userIdsToProcess = new Set<Id>();
    Set<Id> usersToBeRemoved = new Set<Id>();
    Id alertGroupId;
    for(User Usr : Trigger.New){
        if(trigger.isInsert){
            if(Usr.Notify_me_of_releases__c){
               userIdsToProcess.add(Usr.Id); 
            }
        }
        if(trigger.isUpdate){
            if(Usr.Notify_me_of_releases__c && !trigger.oldMap.get(Usr.Id).Notify_me_of_releases__c){
                userIdsToProcess.add(Usr.Id);
            }
            if(!Usr.Notify_me_of_releases__c && trigger.oldMap.get(Usr.Id).Notify_me_of_releases__c){
                usersToBeRemoved.add(Usr.Id);
            }
        }
    }
    
    if(!userIdsToProcess.isEmpty() || !usersToBeRemoved.isEmpty()){
       List<Group> alertGroup = [SELECT Id FROM Group Where DeveloperName='Alert' LIMIT 1];
       if(!alertGroup.isEmpty()){
          alertGroupId =  alertGroup[0].Id;
       }      
    }
    for(User Usr : Trigger.New) {
        if(Usr.Notify_me_of_releases__c && userIdsToProcess.contains(Usr.Id) && alertGroupId != null) {
            GroupMember gm = new GroupMember();
            gm.GroupId = alertGroupId;
            gm.UserOrGroupId = Usr.Id;
            grpMemlist.add(gm);         
        }
    }
    if(!usersToBeRemoved.isEmpty() && alertGroupId != null){
        List<GroupMember> grpMemToBeDeleted = [SELECT Id FROM GroupMember WHERE GroupId = :alertGroupId AND UserOrGroupId IN :usersToBeRemoved];
        if(!grpMemToBeDeleted.isEmpty()){
            delete grpMemToBeDeleted;
        }
    }
    
    if(!grpMemlist.isEmpty()) {
        insert grpMemlist;
    }

}
I have one custom field on user object like "Notify me of releases" which data type is checkbox . When user select "Notify me of releases" checkbox checked  user will get notification for every update of  article whose type is alert. 
Note:- I have created one article type alert.
I have created some article whose type is General. Once we create and publish article, email notification goes to the specific group as per workflow rule. Is there any way to add a link or something in email template so that user can unsubscribe from receiving emails.
When i am trying to deactivate the user below error message i am getting:-
You cannot deactivate a user who is receiving cases or notifications as part of your case assignment/escalation rules.   Click here to view your case assignment / escalation rules. 
When i am trying to deactivate the user below error message i am getting:-
You cannot deactivate a user who is receiving cases or notifications as part of your case assignment/escalation rules.   Click here to view your case assignment / escalation rules. 
Change case status from new to working when any comment is added to the case through trigger. Users can not update the case through SF UI.

Hi,

 

Is it do-able to replace the standard case comment related list and replace it with a custom visual force page?

 

And if it is possible how difficult it is?

 

Thank you.