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: