sp component base.dynamicdataprovider.trygetsource - microsoft/Viva-Connections-Extensibility-Beta GitHub Wiki
Home > @microsoft/sp-component-base > DynamicDataProvider > tryGetSource
Returns a Dynamic Data Source, by its id. If the source is not present, it returns undefined.
Signature:
tryGetSource(id: string): IDynamicDataSource | undefined;| Parameter | Type | Description |
|---|---|---|
| id | string | Id of the Dynamic Data Source. |
Returns:
IDynamicDataSource | undefined