How to call an event registered in a scope application from another scope application

victor21
Tera Guru

Hi Listers,

Is there any way to call an event registered in a scope application from another scope application?.

The use case is this: I want to build a scope application that will be used by other scope applications - this scope application will provide sources of communication with apps using it through events which processing will be done in the scope app. The using apps just need to call the events with data needed for processing as parameters.

Any suggestion will be appreciated,

Regards,

Victor

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Example I used

1) event created in Customer Service Scope

2) Table is in Customer Service Scope

3) Event being called using gs.eventQueue() from another custom scoped application

Event:

find_real_file.png

Cross Scope Record system automatically creates

find_real_file.png

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Victor,

You should be able to do that with the help of cross scope application resource

While creating the event set the Caller Access - Caller tracking

Glide API: event management from scope was denied. What do I put in the cross-scope access declarati...

Define cross-scope access to an application resource

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Example I used

1) event created in Customer Service Scope

2) Table is in Customer Service Scope

3) Event being called using gs.eventQueue() from another custom scoped application

Event:

find_real_file.png

Cross Scope Record system automatically creates

find_real_file.png

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thanks so much Ankur - that work beautifully like a charm !!

Thanks and regards,

Victor