• SFDCBeginner101
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hi,

I am trying to get the salesforce debug log from the apex class. My goal is to show in on the Lightning component. 
To get the debug log we need the Apexlog Id which I can get using SOQL. then we need to call the rest API :
/services/data/v39.0/sobjects/apexlog/Id_got_from_SOQL/Body

my output is giving me :
"message":"This session is not valid for use with the REST API","errorCode":"INVALID_SESSION_ID" error. What should I do now.
 
when i select the picklist field and on Click of GO button it will display the page block table in my vf page. Now i wanted to display one of the field in table with ASC or DESC order.I am not able to do this with SOQL ORDER BY condition due to Order By function is not supporting for external object fields. Please suggest me how can i achieve this functionality.