sp component base.dynamicdataprovider.trygetsource - microsoft/Viva-Connections-Extensibility-Beta GitHub Wiki

Home > @microsoft/sp-component-base > DynamicDataProvider > tryGetSource

DynamicDataProvider.tryGetSource() method

Returns a Dynamic Data Source, by its id. If the source is not present, it returns undefined.

Signature:

tryGetSource(id: string): IDynamicDataSource | undefined;

Parameters

Parameter Type Description
id string Id of the Dynamic Data Source.

Returns:

IDynamicDataSource | undefined

⚠️ **GitHub.com Fallback** ⚠️