JavaScript Functions in Expression Editor | Community
Skip to main content
Level 6
September 21, 2021
Solved

JavaScript Functions in Expression Editor

  • September 21, 2021
  • 2 replies
  • 3867 views

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.
Best answer by Malarrajan_Sundar

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

2 replies

Manoj_Kumar
Community Advisor
Community Advisor
September 21, 2021

Hello @debtr 

 

You can find them under Admin>config>javascript codes

 

 

Manoj  | https://themartech.pro
DebTrAuthor
Level 6
September 22, 2021

By any chance you know the js file name?

I had no luck finding the one.

 

Thanks,

Deb

Malarrajan_SundarAdobe EmployeeAccepted solution
Adobe Employee
September 22, 2021

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

LaurentLam
Level 5
September 26, 2021

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