Skip to main content
stephenk0001
March 5, 2024
Question

Change all app prefixes referenced in all expression rules to a different app prefix

  • March 5, 2024
  • 5 replies
  • 0 views

Hi team

Here is my use case:

  1. Duplicate an app that exists in one schema to a different schema (for data separation)
  2. Recreate every object in the SAM app in the SAL app
  3. In creating the SAL schema, convert all instances of a!queryEntity() to a!queryRecordType()
  4. Temporarily leave the SAM app in place so I can compare SAL functionality against SAM functionality

Completed so far:

  1. Created the new schema (SAL)
  2. Set up the new synchronised record types
  3. Duplicated or created every object that exists in SAM into SAL
  4. Ensured the SAL site has the same layout as the SAM site

Questions I need answers for:

  1. Is there a way to do a bulk find and replace to change all references in every expression from SAM to SAL, or do I have to manually update each individual expression?
  2. I get a warning that type SAL does not exist every time I try to change 'type!{urn:com:appian:types:SAM}SAM_SoftwareOnboardingCase'
  3. Is there a standardised way to convert an a!queryEntity() expression to an a!queryRecordType() expression?

Any help would be greatly appreciated!

Blessings

Stephen

5 replies

stefanhelzle0001
March 5, 2024

For questions 1 and 3 I can say that there is no simple or automatic way.

stephenk0001
March 5, 2024

Thanks Stefan (I didn't think so, but there's always hope...)

Any ideas on question 2?

stefanhelzle0001
March 5, 2024

For Q2, I am missing the details.

mathieud0001
March 5, 2024

For #3 - you could do a search by expression to find all the instances of a!queryEntity() and then do a find & replace but it is not automated.