You are here:
Prepare the Omni Assessment Task
Create an omni assessment task that includes your assessment questions. Then, build an Omniscript from the task and add conditional logic to sequence the questions.
Required Editions
| View supported product editions. |
| User Permissions Needed | |
|---|---|
| To create and edit omni assessment tasks: | Dynamic Assessment Access permission set |
| To build, edit, and activate an Omniscript | OmniStudio Admin permission set |
| To access the Discovery Framework Signature element in an Omniscript: | Industries Assessment permission set |
Create an Omni Assessment Task
Create an omni assessment task to store your assessment questions.
- From the App Launcher, find and select Omni Assessment Tasks.
- Click New.
- Enter a name.
-
For Status, select Is Defined.
By setting the status to Is Defined, you can use the task multiple times.
- Save your changes.
For a Dynamic Assessment for a salon fire safety inspection, create an omni assessment task with these details:
- Name: Salon Fire Safety Check
- Status: Is Defined
Add Assessment Questions to an Omni Assessment Task
Create an Omniscript form from an omni assessment task, and add assessment questions to it.
- From the App Launcher, find and select Omni Assessment Tasks.
- Select the omni assessment task to which you want to add assessment questions.
- Click Create Omniscript.
-
For Omniscript details, enter a name, select a language, and select or enter a type and
subtype.
The type, subtype, and language combine to create a unique identifier for the Omniscript. Consider using logical naming conventions for the type and subtype. For example, for Type, enter the object that you’re basing the Dynamic Assessment on, and for Sub Type, enter the assessment question category.
- To allow the form to be embedded in an Omniscript flow, select Reusable.
-
Search for assessment questions to include in the Omniscript.
- To search all assessment questions, enter a keyword in Search Assessment Questions.
- Search for and select assessment questions related to a question set.
- Filter questions by one or more categories.
-
Add questions to the Omniscript canvas.
- Drag a question from the search results to the canvas.
- Select one or more questions in the search results, click Add Questions to Step, and select the step.
-
Add steps as necessary.
- Name each step section in the form.
- To move a question to a different step, drag it.
- To add the Compliance Status picklist to the question, select Compliance status.
- To allow users to upload files relating to the question, select File attachment.
- Click Build Omniscript.
When Omnistudio finishes building the script, the script opens in a new tab.
For a Dynamic Assessment for a salon fire safety inspection, create an Omniscript with these details:
- Name: Salon Fire Safety Check
- Type: Inspection
- Sub Type: Safety
- Language: English
Create a step named Fire Extinguishers, and add the questions What is the square footage of the establishment? and Are fire extinguishers present? to the step.
Add Question Logic and Activate the Omniscript
Add conditional logic to the omni assessment task’s Omniscript so that assessment questions show based on answers to previous questions.
-
If necessary, open the Omniscript for your omni assessment task.
- From the App Launcher, find and select Omniscripts.
-
From the list view, which is organized by type/subtype, select the Omniscript.
If you have multiple versions, select one that isn’t active. You can’t edit an active Omniscript.
-
Define conditional logic that shows a second question based on the response to the
preceding question.
- Select the step element with the questions to conditionalize, and then select the question that only shows conditionally.
- In the Properties pane, expand the Conditional View section.
- For View Condition, click Show Element if True.
-
Specify these options.
- Select All Conditions Are Met.
- For Field, select the question with the dependency.
- Select an operator and value to define the conditions that show the second question.
- Save the rule.
-
Test the rule.
- Click Preview.
- Run simulations to check the logic.
- Click Design to return to the Omniscript.
- Edit the conditional view logic as necessary.
- Repeat until the logic works correctly.
-
(Optional) If you have custom fields on assessments, configure the Omniscript to save their
values when someone conducts a Dynamic Assessment.
- Select the Save-Responses remote action.
- In the Properties pane, expand Remote Properties.
-
For Remote Options, in Key, enter the custom field by using the syntax
Assessment.fieldname. For example, enter
Assessment.AccountId__c.
Note Custom field names must match the developer names of Assessment fields. For example, Assessment.Name. For more information and supported data types for remote options, see Considerations for Working with Omniscript Designer in Considerations for Working with Discovery Framework.
-
(Optional) Add the Discovery Framework Signature element to the Omniscript so that
inspectors, intake officers, other staff members, or respondents can sign off on the completion
of the assessment.
- From the Build panel, under Groups, drag the Step element to the Omniscript canvas.
- From the Build panel, under Inputs, drag the Signature element to the step.
-
Configure the signature’s properties. See Capture a Respondent’s Signature on a
Form.
Note If your Dynamic Assessment is related to visits, you can instead add a signature task to the assessment’s action plan template. See Create an Action Plan Template for a Dynamic Assessment.
- When you’re satisfied that the Omniscript works correctly, click Activate Version.
For a Dynamic Assessment for a salon fire safety inspection, in the Salon Fire Safety Check Omniscript, define logic so that when the answer to “What is the area of the establishment?” is 500 square feet or greater, the inspector sees the question, “Are there fire extinguishers?” Otherwise, the fire extinguisher assessment question doesn’t show in the omni assessment task, and the task ends.
- In the Salon Fire Safety Check Omniscript, select the Step1 element, which contains the fire extinguishers assessment questions.
- Select the question Are fire extinguishers present?.
- In the Properties pane, expand Conditional View.
- For View Condition, click Show Element if True.
- Select All Conditions Are Met.
- For Field, select Area_of_Establishment.
- For Operator, select Greater Than Or Equal To.
- For Value, enter 500.
Configure Omni Assessment Task Sharing Settings
After they’re configured, make your omni assessment tasks available to other users.
To enable users who conduct Dynamic Assessments to access omni assessment tasks that admins or other users created, grant them read and write access to the records by using organization-wide default sharing settings. See Set Up Record Access for Your Users.

