DEV Community

Cover image for PACX ⁓ Create columns: Boolean
Riccardo Gregori
Riccardo Gregori

Posted on

PACX ⁓ Create columns: Boolean

Welcome to the 3rd article of the series where we show how to leverage PACX commands to create Dataverse columns.


Creating a Boolean column is quite straightforward:

pacx column create --type Boolean --table my_table --name "Is Open?"
pacx column create -at Boolean -t my_table -n "Is Open?"
Enter fullscreen mode Exit fullscreen mode

PACX assumes the following conventions:

  • SchemaName and LogicalName are built by
    • taking the publisher prefix of the current default solution ({prefix})
    • taking only letters, numbers or underscores from the specified --name ({name})
  • RequiredLevel is set to None
  • Description is left empty
  • Label for truevalue is "True"
  • Label for false value is "False"

You can override the default labels for Trueand False values via:

pacx column create --type Boolean --table my_table --name "Is Open?" --trueLabel Yes --falseLabel No
pacx column create -at Boolean -t my_table -n "Is Open?" -tl Yes -fl No
Enter fullscreen mode Exit fullscreen mode

Of course you can also override all the other conventions as described in the previous articles of this series.

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay