Skip to content

GUI tool that fetches CRMScripts from your SuperOffice installations and creates them as files and folders on your PC.

License

Notifications You must be signed in to change notification settings

hjelms/crmscript_fetcher

 
 

Repository files navigation

CRMScript Fetcher

CRMScript Fetcher is a GUI tool that can download CRMScripts and other data from your SuperOffice installations, and create the data as files within a folder structure on your local PC. alt text

About

CRMScript Fetcher is useful for downloading your current scripts and other data such as screens and scheduled tasks into a local repository, which you then may use for pushing into GitHub/Gitlab etc. with your preferred git client.

When fetching, it will create the following folders inside your chosen directory:

  • Scripts
  • Triggers
  • Screens
  • ScreenChoosers
  • Scheduled tasks
  • Tables

Inside these folders, scripts will be created as files with a .crmscript file extension. Metadata will be created as .json files.

CRMScript Fetcher aims to recreate the same folder structure as you see in SuperOffice, as much as possible.

Important to know

The software is provided "as is" without warranty of any kind. All responsibility of the usage of CRMScript Fetcher lies on you.

⚠️ When fetching, all files and folders within the folders Scripts, Triggers, Screens, ScreenChoosers, Scheduled tasks and Tables WILL be deleted if they are not present in SuperOffice.

This also includes files/folders that weren't created by CRMScript Fetcher to begin with, so it is not advisable to put anything there manually.

However, files/folders within the root directory will not be deleted, so you can put stuff there safely.

Technically, all files and folders within the created folders will be deleted and recreated every time you click fetch, even if you have done no changes in SuperOffice.
It is up to you to consider if this poses any problems for your usage.

About the temp backup folder

Each fetch will create a "temp" folder where your current fetcher-created folders are moved into, as a failsafe in case the fetch fails during its execution. The temp folder will be deleted again upon completing the fetch, so you shouldn't normally see it.

If something does go wrong, you can move the contents of temp back into the root folder.

Sometimes, the temp folder might not be deleted correctly due to Windows permission errors. Usually this works itself out by running the fetch again.

Prerequisites

  • A SuperOffice installation with Service and Developer Tools

    • Only tested on Online so far, but should work on an "on premises" installation as well.
  • A local PC running Windows

    • Tested on Windows 10 and 11 only.

Getting Started

  1. Head over to Releases on the right-hand side to download.

  2. Unpack the zip file wherever you want

How to use

  1. Run CRMScript Fetcher.exe

  2. Click the "Copy Fetcher script to clipboard" button. Alternatively, open "CRMScript Fetcher.crmscript" in a text editor, and copy the contents from there.

  3. In your SuperOffice installation, create a new script and paste the contents. Give it an "include name" (e.g. "crmscript_fetcher") and a secret key.

  4. Click "Add tenant"

    • Tenant name: Friendly name of the installation
    • SuperOffice Service URL: For Online environments this will be something like https://online.superoffice.com/CustXXXXX/CS
    • Script include ID: Your include name
    • Script key: Your secret key
    • Local directory: Click Browse to pick your directory where the folders will be created.
  5. Click Save settings

  6. Click Fetch CRMScripts to fetch!

All your tenant settings will be saved locally in the tenant_settings.json file.

Built With

  • Python
  • CRMScript

Authors

  • Espen Steen - ehs5

Acknowledgments

Inspired by:

About

GUI tool that fetches CRMScripts from your SuperOffice installations and creates them as files and folders on your PC.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%