Elementium Sign in
Contents

Utility & web · Step

Make a code

Make a random code or id, like a gift code or an order number. It stays the same for the rest of the run.

Free plan util.make_code

In a flow

“When a button is clicked, make a code.”

Make an 8-character code and DM it as a gift code.

What it does

Make a random code or id, like a gift code or an order number. It stays the same for the rest of the run. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 1 value later steps can use. Find it under Utility & web in the palette.

When to use it

Use it for odds and ends: make a random code or id, like a gift code or an order number. It stays the same for the rest of the run.

When not to

If nothing should change in Discord, a value node or a check is lighter.

Typical wiring

Sockets: settings you can wire

Length Number

How many characters, 4 to 64.

What goes there: Type it in the side panel, or wire in a number. e.g. 42

If it's empty: Optional. Left empty and unwired, it uses 8.

Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 501 more

Values it gives

Code Text

The code it made. e.g. K7QX2MPA

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 578 more

Often next

Related in Utility & web

Wires and sockets · Data values · Plans