Hello All,
I want to call a service from another bundle using the sling.getService() method but I'm having a hard time trying to do this with the Javascript Use API. I have both bundles installed onto AEM and no dependencies attached to either.
I added a filter in bundle b (where the service I want exists) like so
(
immediate = true,
property = {"testprop=shopify"})
public class ShopifyStoreServiceCustomImpl implements ShopifyStoreServiceCustom {
and then in bundle a's use api I'm trying to call it like this:
var storeServiceCustom = sling.getServices(Packages.com.canopygrowth.shopify.core.services.ShopifyStoreServiceCustom, "(testprop=shopify)");
By doing this I'm getting null. Anything I'm doing wrong here?