Notifications

282 views

Description

The function getSearchSources() in Typeahead Search widget is not accessible from scope application on Service Portal

Steps to Reproduce

  1. Run the below function in the server script of a scoped widget:

    data.portalID = $sp.getPortalRecord().getUniqueValue();
    var searchSources = $sp.getSearchSources(data.portalID, null);

    2. Open a portal page where that widget is used.

    Expected behaviour: The function works, no error messages are received

    Actual behaviour:

    You will receive the below error message:
    "Server JavaScript error Cannot find function getSearchSources in object com.glide.service_portal.widget.fencing.ScopedSPScriptable@e85168."

Workaround

This 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 or Intended Fix Version fields to determine whether any versions have a planned or permanent fix.


Related Problem: PRB1321918

Seen In

There is no data to report.

Fixed In

London Patch 9
Madrid Patch 4
New York

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-05-21 11:43:56
Published:2019-04-14