• sijumv2
  • NEWBIE
  • 10 Points
  • Member since 2015


  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 1
    Likes Given
  • 6
    Questions
  • 3
    Replies
User-added image
Requirement is to have stripes for the bars in the barchart rather than solid color. have anyone tried this.

Thanks,
Siju
Hi All,

I wanted to copy the feed body(all the message segments) and want to post it as a new feedElement. 

Thanks,
SIju
  • September 16, 2016
  • Like
  • 0
public static beanClass responseParser(Dom.Document response,String responseType)
     {
    
   beanClass rsp =new beanClass ();
    
       
        Dom.XmlNode readRsp= response
                            .getRootElement()
                            .getChildElement('Body', Utility.SE_NAMESPACE )
                            .getChildElement(responseType,Utility.RES_SERVICE_NAMESPACE);
                             
                             if(readRsp!=null){ /*In case of status 200,400*/
                             rsp.setStatusCode(readRsp.getChildElement('statusCode', null).getText()); 
                             rsp.setStatusMessage(readRsp.getChildElement('statusMessage', null).getText());}
                             else{ 
                             readRsp= response
                            .getRootElement()
                            .getChildElement('Body', Utility.SE_NAMESPACE )
                            .getChildElement('Fault', Utility.SE_NAMESPACE );
                             Dom.XmlNode readRspCode=readRsp
                            .getChildElement('Code', Utility.SE_NAMESPACE )
                            .getChildElement('Subcode', Utility.SE_NAMESPACE );
                            if(readRsp!=null && readRspCode!=null){
                             List<String>lsValues=Utility.getValuesFromStringCS(readRspCode.getChildElement('Value', Utility.SE_NAMESPACE).getText());
                             if((!lsValues.isEmpty()) ){
                             if(lsValues.size()>=2){
                             rsp.setStatusCode(lsValues[1]); }
                             else{rsp.setStatusCode(lsValues[0]);} } }
                             if(readRsp!=null){
                             rsp.setStatusMessage(readRsp.getChildElement('Reason', Utility.SE_NAMESPACE)
                             .getChildElement('Text', Utility.SE_NAMESPACE).getText());}
                            
                             } 
                
        return rsp ;
     
     }

Hi all, i wanted to create a mock Dom.Document for above parser and add it to fake http response. Can someone help. Thanks
  • September 07, 2016
  • Like
  • 0
Hi All,

I have a visual force page in community with a visualforce component. It shows all the chatter feeds, from last week it started throwing visual force error, in debug log it shows exception but it never shoes what exception or where it is throwing. The log shows controller excecution as success.
When I make debug log level fine,finest or internal then the page loads.
Then I reduced the number posts shows in the page from 10 to 8 then page started loading, so I ASSUME it was view state exception, but why it was shown in log?
Is there any way to see the view state for those page in community for those users it thrown error? Development mode wont help in community and this page cannot be loaded from salesforce side(other than community).

Thanks
 Hi All,

I am getting an exception 

USER_DEBUG [6]|DEBUG|System.DmlException: Upsert failed. First exception on row 0; first error: DUPLICATE_VALUE, duplicate value found: <unknown> duplicates value on record with id: <unknown>: []

when I am trying to insert an EntitySubscription  record

EntitySubscription en=new EntitySubscription(NetworkId = commId, SubscriberId = sid, ParentId = pid);
try{upsert en;}catch(Exception e){System.debug(e);}

I checked for duplicate records but there are no duplicate i could find in workbench

Thanks
Hello,
I want to find who all have liked an element in  the chatter feed. I am using Ver 30.
ConnectApi.ChatterLikePage.likes will this work? if not which method i should use.
Thank you
 Hi All,

I am getting an exception 

USER_DEBUG [6]|DEBUG|System.DmlException: Upsert failed. First exception on row 0; first error: DUPLICATE_VALUE, duplicate value found: <unknown> duplicates value on record with id: <unknown>: []

when I am trying to insert an EntitySubscription  record

EntitySubscription en=new EntitySubscription(NetworkId = commId, SubscriberId = sid, ParentId = pid);
try{upsert en;}catch(Exception e){System.debug(e);}

I checked for duplicate records but there are no duplicate i could find in workbench

Thanks
 Hi All,

I am getting an exception 

USER_DEBUG [6]|DEBUG|System.DmlException: Upsert failed. First exception on row 0; first error: DUPLICATE_VALUE, duplicate value found: <unknown> duplicates value on record with id: <unknown>: []

when I am trying to insert an EntitySubscription  record

EntitySubscription en=new EntitySubscription(NetworkId = commId, SubscriberId = sid, ParentId = pid);
try{upsert en;}catch(Exception e){System.debug(e);}

I checked for duplicate records but there are no duplicate i could find in workbench

Thanks
Hello,
I want to find who all have liked an element in  the chatter feed. I am using Ver 30.
ConnectApi.ChatterLikePage.likes will this work? if not which method i should use.
Thank you
Hello Dev Community,

within "Developer Trail - Beginner" Module "Apex Basics & Database" I have started step "Getting Started with Apex".
From topic "Apex Collections: List" I try to execute some commands of that example as static method. This is the coding of my very first apex program:

User-added image

Now I am stuck with this: only the last System.debug statement for color "blue" is executed:
User-added image

May I ask for some help, please:
How (if ever) can I get all 3 colors shown in debug log?
How should I code this program more professionally?