• pavan Kumar.v
  • NEWBIE
  • 30 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 9
    Replies
Hi all,
Im getting a null pointer exception butwhen when i debug it everyone argument has a value but still it is throwing null pointer exxeption . can anyone please guide me User-added image
Hi all,
So i have used a trigger to delete the Chatter Post but unless the chatter feed is refreshed the latest update will not be visible.
Is there any way to refresh the chatter feed when the record is deleted through Trigger
Hi All,
I would like to take out the Chatter Post comment which is inside another comment and make it post as a single individual post, can anyone guide me or provide me the sources on how to achieve this?
This then doesn't detract from the original chatter.

e.g.Original Chatter

[1]Comment 1
[2]Comment 2
[2a]Repy to Comment 2
[2b]Reply to Comment 2a
so here can we take out the 2a and 2b and post it again as an individual Chatter post and not inside another comment?
HI ALL,
I HAVE WRITTEN A TRIGGER SO WHENEVER CERTAIN USER IS POSTING A MESSAGE IN CHATTER , THE CHAT POST SHOULD BE CHANGED TO 'ALL USER'

if(feedItemRecord.CreatedById == '005f4000004zl8mAAA' || feedItemRecord.CreatedById == '0056N000001QahNQAS ') { feedItemRecord.Visibility = 'AllUsers'; feedItemRecord.Status = 'Published'; }

BUT ITS NOT WORKING, CAN ANYONE GUIDE ME ON THIS PLASEA

Hi All,
Can anyone help in writing the regex code for apex and not for validation rule.
My output should be  example: +61918273645 0r +64918273645.
list<string>updatedPhoneNumbers = new list<string>();
        String phoneRegex = '{+61}\d{9}[0-9]'; //Australia
        String phoneRege = '{+64}\d{9}[0-9]'; // New Zealand
        String phoneNumber = '';
        list<string>updatedPhoneNu = participantPhone;
        for(string str : updatedPhoneNu){
            phoneNumber= str ;
            Pattern PhonePattern = Pattern.compile(phoneRegex);
            Matcher EmailMatcher = PhonePattern.matcher(phoneNumber);
            if(EmailMatcher.matches()){
                updatedPhoneNumbers.add(str);
            }
            else {
                Pattern PhonePattern1 = Pattern.compile(phoneRegex);
                Matcher EmailMatcher1 = PhonePattern.matcher(phoneNumber);
                if(EmailMatcher.matches())
                {
                    updatedPhoneNumbers.add(str);
                }
            }
        }

Hi all,
Can anyone please explain what they are trying to achieve here 
string str = '('+'\''+'Month'+'\''+')'
what is the outcome of this?
and how can we achieve this and is there any reference to these types of tips??
Hi All,
The scheduler class is calling Batch class and in return Batch class is calling queueable class and I want to print the system.debug() from all of these classes when it ran.
But I'm only able to see debug the from Batch class and can anyone explain how to get debug logs from queueable class  as well
Hi all,
Im getting a null pointer exception butwhen when i debug it everyone argument has a value but still it is throwing null pointer exxeption . can anyone please guide me User-added image
Hi All,
I would like to take out the Chatter Post comment which is inside another comment and make it post as a single individual post, can anyone guide me or provide me the sources on how to achieve this?
This then doesn't detract from the original chatter.

e.g.Original Chatter

[1]Comment 1
[2]Comment 2
[2a]Repy to Comment 2
[2b]Reply to Comment 2a
so here can we take out the 2a and 2b and post it again as an individual Chatter post and not inside another comment?

Hi All,
Can anyone help in writing the regex code for apex and not for validation rule.
My output should be  example: +61918273645 0r +64918273645.
list<string>updatedPhoneNumbers = new list<string>();
        String phoneRegex = '{+61}\d{9}[0-9]'; //Australia
        String phoneRege = '{+64}\d{9}[0-9]'; // New Zealand
        String phoneNumber = '';
        list<string>updatedPhoneNu = participantPhone;
        for(string str : updatedPhoneNu){
            phoneNumber= str ;
            Pattern PhonePattern = Pattern.compile(phoneRegex);
            Matcher EmailMatcher = PhonePattern.matcher(phoneNumber);
            if(EmailMatcher.matches()){
                updatedPhoneNumbers.add(str);
            }
            else {
                Pattern PhonePattern1 = Pattern.compile(phoneRegex);
                Matcher EmailMatcher1 = PhonePattern.matcher(phoneNumber);
                if(EmailMatcher.matches())
                {
                    updatedPhoneNumbers.add(str);
                }
            }
        }

Hi all,
Can anyone please explain what they are trying to achieve here 
string str = '('+'\''+'Month'+'\''+')'
what is the outcome of this?
and how can we achieve this and is there any reference to these types of tips??
Hi All,

I want to write a validation rule on phone number custom field. I want to check if the phone number cotains the user's iso country code. For example the user creating or updatin the record has its iso country as INDIA. The validation rule must check if the phone number contains +91. I want to write that for many countries.

Thanks,
Anuj
I have customers, partners & employee users, each with their own profile. All 3 of them update the same chatter feed on a record. I want customers to only see what employees post, employees to see what both partners & employees post and for partners to only see what employees post.

How can I achieve this requirement?