Skip to main content

I'm trying to figure out how to access the version of an integration being used for use in the API connection headers/url/...etc. I've tried bundle, authData, inputData and a few others that I guessed but version has not yet been found.


Paging @ikbelkirasan who should be able to assist here.



Hi @iarp - You can get the app version from package.json . One way to do it is to create a hidden input field as shown below and you'll be able to access the app version from bundle.inputData.appVersion

{

  // ...

  operation: {

    inputFields: d

    // other input fields...

      (z, bundle) => {

        const { version: appVersion } = require("../../package.json");

        return

          {

            key: "appVersion",

            hidden: true,

            default: appVersion

          }

        ];

      }

    ],

  }

}



No way to access that via the form entry?



This isn't currently possible to achieve through the Visual Builder, no @iarp. That said, if you write in via the contact form at https://zapier.com/contact and select Developing an app on the Zapier platform this request will get routed to my team and we will be able to pass this on to the developer platform team for future consideration.