Notifications

174 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.

Intended Fix Version

New York

Fixed In

London Patch 9
Madrid Patch 4

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

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