---
schema_version: "1"
id: 81cee46c76249f50759ee34f382ba6c9b7d90c9afb3f7e2a0cb98700e1eb2032
title: ResearchStdyRandomization
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/sforce_api_objects_researchstdyrandomization.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/sforce_api_objects_researchstdyrandomization.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e086b8e0bd2b57843e4fac65fb32d90c07e3337279dd3b7ab6b9d2bcb522cd47
description: Represents the randomization algorithm configuration defined for a research study. This object is available in API version 61.0 and later.
---
# ResearchStdyRandomization

Represents the randomization algorithm configuration defined for a research study. This object is available in API version 61.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

## Fields

### AlgorithmFlowDefinition

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The flow definition that contains the block generation algorithm.

### AlgorithmType

- **Type**: picklist
- **Properties**: Create, Filter, Group, Restricted picklist, Sort, Update
- **Description**: Specifies the algorithm type of the research study randomization.
- **Possible values**:
    - Block
    - Custom

### Description

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The description of the research study randomization.

### DoesAsgnCandidatesToGroups

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the randomization procedure should create a Research Study Comparison Group Candidate record for candidates for the matching group.
- **Default value**: false

### DoesGenerateBlockOnDemand

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the algorithm can generate new blocks during randomization (true) or not (false).
- **Default value**: false

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp for when the current user last viewed a record related to this record.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp for when the current user last viewed this record. If this value is null, it’s possible that this record was referenced (LastReferencedDate) and not viewed.

### MaximumBlockSizeMultiplier

- **Type**: int
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The maximum multiplier that's applied to decide the size of a block type research study randomization.

### MinimumBlockSizeMultiplier

- **Type**: int
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The minimum multiplier that's applied to decide the size of a block type research study randomization.

### Name

- **Type**: string
- **Properties**: Create, Filter, Group, idLookup, Sort, Update
- **Description**: The name of the research study randomization.

### OwnerId

- **Type**: reference
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: The ID of the object assigned to the territory.
    
    This field is a polymorphic relationship field.
- **Relationship Name**: Owner
- **Refers To**: Group, User

### RandomizationLevel

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: Specifies the randomization level of the research study randomization.
- **Possible values**:
    - Central
    - Noncentral

### ResearchStudyId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: The research study associated with the research study randomization.
    
    This field is a relationship field.
- **Relationship Name**: ResearchStudy
- **Refers To**: ResearchStudy

### Status

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: Specifies the status of the research study randomization.
- **Possible values**:
    - Active
    - Draft
    - Inactive

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[ResearchStdyRandomizationFeed](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/sforce_api_associated_objects_feed.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.")

Feed tracking is available for the object.

[ResearchStdyRandomizationHistory](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")

History is available for tracked fields of the object.

[ResearchStdyRandomizationShare](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")

Sharing is available for the object.