Expand my Community achievements bar.

calling js from js

Avatar

Level 2

Hi All , 

while learning i got below 2 Questions , Can someone please give brief idea about these.

 

1) Let's say we have 2 JS codes (JS1 ,JS2 ) , how can we call JS2 from JS1 (can't use external signal as both JS are in  same workflow but in different transitions/part of workflow) , Do we have any function or method  to call another JS for above case.

 

2) what are Number of ways in which we can create schemas and how many different types of schema we can create in ACC.

 

Thanks in Advance.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies

Avatar

Community Advisor

Hi @at7140 ,

For case-1, you can use Jump activity.

ParthaSarathy_0-1736049699339.png

In the above workflow diagram JS1 andJS2 are in different transition / part of the workflow and once the workflow starts, JS-2 will get triggered after JS-1.

2) Schema cam be created under /Administration/Configuration/Data schemas/ . Types - Creating a new schema in adobe campaign default database postgreSql; To edit out of the box schema - extend the OOTB schema and editing; If Campaign is connected with external databases like snowflake, create the schema by accessing the external database table.

Avatar

Level 2

Hi @ParthaSarathy 

above logic seems good to me , but do we have any in built function/method in js by which we can call other js2 directly from js1(wishing to write some code in JS1 itself if possible).