2

As I am using 'Customer Service' community template & where I want this community to be accessed publicly.

Also I want to post the question using 'Ask A Question' publicly. But when I use this community using a authenticated user then ask a question work perfectly But, for guest user it ask for login when I click on 'Ask A Question' button.

Is there any standard way to achieve this?

If Not then, I want to achieve this by custom way using custom component. So first, I want to know where this question & it's answer stores.

enter image description here

1

"Ask a question" is a standard component and requires community users to log in.

The standard docs indicate that one needs to login in order to use this .

https://help.salesforce.com/articleView?id=rss_ask_community.htm&type=5&sfdcIFrameOrigin=null

You can create a custom component if you need this functionality to work for guest users (unauthenticated users). A chatter feed item(https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_feeditem.htm) record is created with type of question post.

6
  • Hello @Mohith, Thanks for your reply. As I have just used the 'ask a question' for a authenticated user, But when I am trying to find that question in back end in sfdc But, I can't. Can You help me on this? – Pratap Jadhavar Jan 6 '20 at 12:53
  • 1
    Yes you should be able to run a soql on Feed Item object with networkID as community Id and type as "Question Post" – Mohith Shrivastava Jan 6 '20 at 12:56
  • Thanks @mohith.. that worked. – Pratap Jadhavar Jan 6 '20 at 13:30
  • Hi @mohith, have quickly just checked by querying on feedtem object & got the asked questions records there. But for the guest user we can't create feedItem record. success.salesforce.com/ideaView?id=08730000000keDRAAY – Pratap Jadhavar Jan 6 '20 at 14:22
  • One other alternative would be put into a custom object and then a future or a queueable job can move that record to feeditem as an anonymous user – Mohith Shrivastava Jan 6 '20 at 14:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.