Generate project codes from project names

Recipe Tools

What it does

When someone calls the Project Name to Project Code function, this automation transforms the input into a formatted project code. It processes the name through conditional logic and returns the code so the caller receives it immediately.

Who it's for

Operations teams who need consistent project codes generated from project names across systems.

How teams use this

Generate codes for new projects

When a project is created in a project management tool, call this function to get a standardized code. The code is returned in real time so it can be stored with the project record.

Sync codes to an ERP system

Route project names from an ERP to this function and write the codes back to a project code field. The same logic applies and only the destination system changes.

Add department prefix to codes

Extend the function to check a department field and prepend it to the code so Finance projects start with FIN and Sales projects start with SAL. Only the transformation logic needs to be updated.

How it works

  1. Receive a project name. A real-time call arrives in Workato Service with a project name that needs to be converted into a standardized project code format.
  2. Build the project code. Set up variables and create a list from the project name in Workato Service, then check the list size to decide which transformation logic to apply.
  3. Transform based on name length. If the list has multiple items, loop through each one in Workato Service to build the code. If not, use a simpler format for the code.
  4. Return the project code. Send the formatted project code back from Workato Service to the caller so it can be used immediately in downstream systems.