# getNextValueFromSequence

State Resource

This is a State Resource as provided by the tymly-pg-plugin plugin.

# Purpose

Gets the next value from the specified sequence, returning it as the value of the value property

# Usage

# Example

{
  "GetNextValueFromSequence": {
    "Type": "Task",
    "Resource": "module:getNextValueFromSequence",
    "ResourceConfig": {
      "namespace": "wmfs",
      "id": "tempUprn",
      "prefix": "FSA"
    },
    "ResultSelector": {
      "uprn.$": "$.value"
    },
    "Next": "Create"
  }
}

# Options

# Required properties

# namespace

This is the name of the namespace in which the sequence exists.

  • Type: string

# id

This is the id of a sequence from which the next value will be fetched.

  • Type: string

# Optional properties

# prefix

This setting allows you to specify a value which will be prepended to the returned value.

  • Type: string
Last Updated: 9/10/2023, 11:30:14 AM