Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Providing Global Functions in an Extension

Avatar

Avatar
Validate 1
Level 3
jimbSprint
Level 3

Likes

26 likes

Total Posts

20 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 3
jimbSprint
Level 3

Likes

26 likes

Total Posts

20 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jimbSprint
Level 3

02-01-2018

I know Extensions have shared modules where they can be shared with other extension code.  Can the same structure be used in a piece of custom javascript code deployed as an Action?

We have been developing a set of utilities (similar to what we did in DTM) that we are calling "Useful Things Adobe Should Have Cooked Into Launch" (granted, it needs a less unwieldy name!).  We can load in in custom JS and make the functions available at the window level, but if we could cook it all into an Extension it would be easier to deploy across all of our properties.

View Entire Topic

Avatar

Avatar
Validate 1
Level 3
jimbSprint
Level 3

Likes

26 likes

Total Posts

20 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 3
jimbSprint
Level 3

Likes

26 likes

Total Posts

20 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jimbSprint
Level 3

02-01-2018

Quick update.  I wrote an extension that has an action that will create a window-level object that has the various utility functions.  Seems to work OK (VERY limited testing) - I was able to execute commands from the console.

The only downside is you have to run the action in, say, a page load rule to make them available.  Is there a place to put code in an extension that runs regardless of whether or not an action is called?