Is there a way to fire an extension UID from a different extension?

Bronze Contributor
Bronze Contributor

for cleanup purposes, I have different event triggers that I want to fire off a javascript function.  Is the best way to create a javascript extension and store the this function as a global function, or is there a way that you can tell Telium to fire off an extension UID?

3 REPLIES 3

Is there a way to fire an extension UID from a different extension?

Employee Emeritus

Hello @jeffrey_gruver. Great question. Let me see if I can find you an answer. Stay tuned...

Remember to give me a kudo if you like my post! Accepting my post as a solution is even better! Also remember that search is your friend.

Is there a way to fire an extension UID from a different extension?

Community Manager
Community Manager

@jeffrey_gruver You can define your function in a JavaScript Code Extension scoped to Pre Loader (this code is globally scoped in the window), then your event triggers can call that function. Extensions are not intended to be executed directly by UID (like Tags are), but through the convenience of extension scopes and global namespacing, you can easily create a global function using this approach.

Remember to "Accept as Solution" when your question has been answered and to give kudos to helpful replies.

Is there a way to fire an extension UID from a different extension?

Bronze Contributor
Bronze Contributor

Thank you Justin.  That is what I was thinking, was just hoping that there was a possible different option :)

Public