Print this page

Work.com: Feedback - How do I request feedback through the API?

Knowledge Article Number 000220839
Description How do I request feedback through the API?
Resolution Ad hoc feedback is composed of 4 objects:

WorkFeedbackRequest - this holds information related to each request for feedback (e.g. the id of the person you requested feedback from, type of feedback).  You can learn more about the object and fields here: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_workfeedbackrequest.htm

WorkFeedbackQuestion - this holds details about the question (e.g. the question text).  You can learn more about the object and fields here: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_workfeedbackquestion.htm​

WorkFeedbackQuestionSet - this is a container for the question.  Nothing too significant here.  It has a bigger role for feedback related to performance summaries.  You can learn more about the object and fields here: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_workfeedbackquestionset.htm​

WorkFeedback - this holds the actual response to the request (e.g. the text response from the invited user).  You can learn more about the object and fields here: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_workfeedback.htm

To create requests through the API you will need to create each of these records.

Some things to be aware of:
  • You'll create one or more WorkFeedbackRequest records depending on how many users you want to collect feedback from
  • You'll create one or more WorkFeedback records depending on how many users you want to collect feedback from
  • The person requesting the feedback must be the owner of all the WorkFeedbackRequest records, the WorkFeedbackQuestion record and the WorkFeedbackQuestionSet record
  • The people invited to give feedback should be the owners of the WokFeedback records
  • The FeedbackType field in the WorkFeedbackRequest record and the WorkFeedbackQuestionSet record must both be set to Personal




promote demote