JavaScript Functions in Expression Editor | Community
Skip to main content
Level 6
Sep 21, 2021 1:04 PM UTC
Solved

JavaScript Functions in Expression Editor

Hi,

I would like to know where the js functions present in expression editor in workflows are defined. Need to look into some OOTB functions.

I could find some sql functions in Admin->Config->SQL that corresponds to the js functions, but couldn't locate the js function definition.

Any help/hint is appreciated.

 

Thanks,

Deb

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Malarrajan_SundarAccepted solution
Employee
Sep 22, 2021 5:16 PM UTC

Thanks @malarrajan_sundar .

At least, It is clear that cant be accessed from console.

May I know the server file name and location?

 

Cheers,

Deb


Hi @debtr 

File path : <Campaign_Installed_location>\datakit\xtk\eng

File Name: funcList.xml

 

- Malarrajan Sundarraj

10 replies

LaurentLam
Level 5
Sep 26, 2021 8:00 PM UTC

It's impossible: expressions from workflows (and that appears in the nlClient UI) are only pure SQL translation expressions... You will never find any JS dedicated expression in it:
low level expression are ran directly on the DB layer. higher level expression (from JSAPI) are ran on the JS engine layer (on top of the DB layer)

If you need to add new SQL expression, you can use this documentation:
Ajout d'autres fonctions SQL | Adobe Campaign

Translate
_Manoj_Kumar_
New Participant
Sep 21, 2021 4:00 PM UTC

Hello @debtr 

 

You can find them under Admin>config>javascript codes

 

 

Translate
     Manoj     Find me on LinkedIn
DebTrAuthor
Level 6
Sep 22, 2021 8:05 AM UTC

By any chance you know the js file name?

I had no luck finding the one.

 

Thanks,

Deb

Translate
ShrawanSaxena-1
Employee
Sep 22, 2021 8:12 AM UTC

Hi Dev,

which OOB function you are looking for ? Functions definitions are present in database specific files .

For example all postgres related functions are defined inside xtk:postgresql-functions.sql

Translate