Move app to new schema and get rid of CDTs.

Certified Associate Developer

Hi team
We have moved an existing application to a new schema, and we are also getting rid of the old CDTs in order to use Record Types instead.

I need to know how to apply the 'type' function where the new schema name is SierraUniformMike and the recordtype name will be SUM Onboarding Case

'type!{urn:com:appian:types:PRE}PRE_OnboardingCase'(
  id: null,
  case: rule!DCM_newCase(
    reference: joinarray(
      {
        "PRE",
        text(
          rule!APP_default(value: now(), default: today()),
          "yymmdd"
        ),
        rule!APP_generateUUIDSegment(6)
      },
      "/"
    ),
    parentID: null,
    priority: null,
    milestone: rule!PRE_getCaseMilestoneByUUID(
      milestoneUUID: cons!PRE_UUID_ONBOARDING_CASE_MILESTONE_OPEN
    ),
    assignment: null,
    type: rule!DCM_getCaseTypeByUUID(
      uuid: cons!PRE_UUID_CASE_TYPE_ONBOARDING_CASE
    ),
    createdOn: now(),
    createdBy: loggedInUser()
  ),
  createdOn: now(),
  createdBy: loggedInUser()
)




OK, I hope this will explain a bit more:

The above expression is for the old schema, which uses CDTs.

The expression works properly in the old schema.

The revised expression will need to :

  • Create a new SUM Onboarding Case record (using a record type in the new SUM schema)
  • Create a new DCM case in the old schema, using the rule!DCM_NewCase expression
  • Populate my process with the resulting variables

I am not using an Action to create  the new SUM Onboarding Case

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data