Location of scripts

A customer is looking at migrating to online and we need to ensure their scripts can work online. Their server is not accessible to us and their IT partner need to help us sending the scripts.

So, where are scripts referred to in customer portal pages located?

RE: Location of scripts

In Online, you can modify the existing (but not add) customer center pages under Settings > Customer Center. All these pages are stored in the database in the reply_template tables.

Sverre

Av: Sverre Hjelm 4. feb 2019

RE: Location of scripts

The code of the customer's framework.html says 

#include "getAccessType";

and we need to get hold of that script. Are they not stored on the server but only in the database?

 

Av: Patrik Larsson 4. feb 2019

RE: Location of scripts

That script is stored in the ejscript table, yes.

Av: Hans Wilhelmsen 4. feb 2019

RE: Location of scripts

That script is in the database, in the ejscript table. To find it: Settings > System Design > CRMScript. Click Search in top-right corner. Specify that "Include name" contains/equals the name of your script ("getAccessType"). This will only give you a view-only display of the script, but it will show which folder it is in, allowing to then manually find the folder and the script.

Sverre

Av: Sverre Hjelm 4. feb 2019

RE: Location of scripts

Great, thanks for the info!

Av: Patrik Larsson 4. feb 2019

RE: Location of scripts

Hi Patrik,

also - if you need the ID of the script, there's a global function that fetches the script ID based on the includeId:

Integer scriptId = getScriptId("getAccessType");

print("Script ID: " + scriptId.toString());
Av: Simen Mostuen Iversen 5. feb 2019