LifeScienceCustomScript

Represents a custom script associated with a Life Science stage object within a workflow. Use a custom script to implement the validation logic for the stage object. This object is available in API version 65.0 and later.

Supported Calls

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

Fields

CodeText

  • Type: textarea
  • Properties: Nillable
  • Description: The JavaScript code associated with a Lightning web component.

ComponentName

  • Type: string
  • Properties: Create, Filter, Group, Sort, Update
  • Description: Required. The name of the Lightning web component that contains the custom script.

Name

  • Type: string
  • Properties: Create, Filter, Group, idLookup, Sort, Update
  • Description: The name of the Life Science custom script record.

ObjectName

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: For a Mobile Page Layout Validation script, the name of the object associated with the custom script.

OperationEventType

  • Type: picklist
  • Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
  • Description: For a Mobile Page Layout Validation script, the type of operation that the custom script supports.
  • Possible values:
    • OnCreate
    • OnDelete
    • OnUpdate

OwnerId

  • Type: reference
  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update
  • Description: The ID of the owner of the record.

    This field is a polymorphic relationship field.

  • Relationship Name: Owner
  • Refers To: Group, User

SourceSystemIdentifier

  • Type: string
  • Properties: Create, Filter, Group, idLookup, Nillable, Sort, Update
  • Description: An external ID from the source system for data integrations.

SourceSystemName

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The name of the source system for data integrations.

Type

  • Type: picklist
  • Properties: Create, Filter, Group, Restricted picklist, Sort, Update
  • Description: Required. The type of custom script.
  • Possible values:
    • Checklist
    • MobilePageLayoutDataValidation
    • OrderValidation
    • Validation

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.

LifeScienceCustomScriptShare
Sharing is available for the object.