{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":49401,"path":"servicenow-platform/t_GenAssessmentOnDemandAPI.md","title":"Generate an assessment with the on-demand API","bundle":null,"doc_type":null,"release":"australia","body":"\n# Generate an assessment with the on-demand API\n\nThe Assign Assessment buttons call an API to generate on-demand assessments.\n\n## Before you begin\n\nRole required: assessment\\_admin or admin\n\n## About this task\n\n## Procedure\n\n1.  To generate an assessment, call the [AssessmentCreation API](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/api-reference/server-api-reference/c_AssessmentCreation.md) from any script in the system, such as a business rule or client script.\n\n2.  Use the sys\\_ids of these items:\n\n    -   An assessable record to evaluate. The assessable record must be associated with an on-demand type and at least one category that contains non-scripted metrics.\n    -   One or more users who should perform the assessment. The API generates a questionnaire about the specified assessable record for each user.\n\n**Parent Topic:**[On-demand assessments](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/c_OnDemandAssessments.md)\n\n**Related topics**  \n\n\n[Assessment generation](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/c_AssessmentGeneration.md)\n\n[Scheduled assessments](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/c_ScheduledAssessments.md)\n\n[Generate a scheduled assessment manually](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/t_GenSchedAssessmentManually.md)\n\n[Generate a vendor type assessment manually](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/t_GenAVendorTypeAssmtManually.md)\n\n[Set an assessment generation schedule](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/t_SetAssesstGenerationSchedule.md)\n\n[Assessment instances](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/c_AssessmentInstances.md)\n\n[View an assessment instance](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/t_ViewAnAssessmentInstance.md)\n\n[Clean up assessment data](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/t_CleanUpAssessmentData.md)\n\n"}}