Getting "$sp" is not defined error for the search source that is created in a different application scope.DescriptionGetting "$sp" is not defined error for the search source that is created in a different application scope.Steps to Reproduce 1) Create a Search Source in scoped app and use standard $sp.logSearch in it2) Add it to a Service Portal3) Search in that portal some text and hit enter to go to "search" page4) Review the log to see a warning that $sp is not defined as below:Warning system log:org.mozilla.javascript.EcmaError: "$sp" is not defined.Caused by error in sp_search_source.c4eaa544db4d04101de3a3e84b961921.data_fetch_script at line 57==> 57: $sp.logSearch('x_srf_newsletter_instance', query, newsletterInstanceGR.getRowCount(), data.searchType);WorkaroundThis issue is under review. To receive notifications when more information is available, subscribe to this Known Error article by clicking the Subscribe button at the top right of the article. If you are able to upgrade, review the Fixed In field to determine whether any versions have a permanent fix.Related Problem: PRB1376707