Cannot post to Chatter from skuid page (Error code: INVALID_SESSION_ID Message: Session expired or invalid)

  • 1
  • Problem
  • Updated 1 year ago
  • In Progress
I have a skuid page on a public facing sites page that my org uses to collect information from potential clients. I would like the submission of this info to trigger a chatter post to one of our org members alerting them to the new submission, however when my action to post to chatter using the 'Run salesforce action' option is invoked I get the following error: 

There was an error performing this GET request:

Message: Session expired or invalid

Has anyone found a way around this error? 
Photo of Matt Bartholomew

Matt Bartholomew

  • 122 Points 100 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,968 Points 20k badge 2x thumb
An initial guess:  the public site user does not have rights to submit a chatter post.  
Photo of Craig Rosenbaum

Craig Rosenbaum

  • 4,970 Points 4k badge 2x thumb
Rob's guess is correct. I ran into this today. The sites user cannot post to chatter. However, you can circumvent this a few ways.
  • Create a custom object to receive this feedback and use a process builder to do the chatter posting. 
  • Use a custom field on the parent object and use process builder to do the chatter posting.
  • Call invocable apex from the sites page