@Agile_Dynamics and I are very excited to share with the Community our Pack.Builder doc for getting started with packs!
We have broken down the steps of creating a new pack into three steps:
- Define desired Outputs
- select which block type shall be used for your pack.
- Next, for the pack type just selected, define its Return Type.
- Lastly, specify whether your pack will send/retrieve data from a third party application via an API.
- Define User Inputs
- You define the Input Parameters in your pack’s code and the user fills them with values when they use your Pack.
- Define Pack’s Function
- Define the function that is carried out via the execute statement when this pack is used.
- This function is written in Javascript.
- And this is where the secret sauce comes in: Our doc is is geared towards users proficient in the Coda-Formula Language (CFL), not Javascript. Therefore, it will bridge the gap between CFL- and JS-knowledge. So, for the 5 Key functions, which most packs will require, you merely have to select the corresponding formula in CFL below, and it will automatically be converted into Javascript.
After this, all that’s left is to click the Build Pack button. This will copy the pack’s code to your clipboard and open up a new pack window. In the Pack Editor, simply select “Start from Scratch”, delete the existing code and paste in your code.
You’re done!
Happy Pack Building!