How to expose dynamic data source?

karolis.stoncius 41 Reputation points
2022-03-29T13:57:29.953+00:00

Hi,
I've been following this tutorial on how to share data between web parts. Last year I've managed to make it work, but this time for some reason my dynamic data source does not appear on the list: 188001-image.png
Important thing to note, it works fine when hosted locally, but when it's deployed and I'm trying to add these web parts to my modern page, the source is not on the list.
Source: 187967-image.png
187993-image.png
Consumer: 187983-image.png

package.json: 187966-image.png

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
8,562 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,395 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tong Zhang_MSFT 9,101 Reputation points
    2022-03-31T07:49:54.8+00:00

    Hi @karolis.stoncius ,
    Based on my research and testing, I have achieved sharing data in two web parts based on the following documentation. You can refer to.

    Reference:
    https://www.c-sharpcorner.com/article/pass-data-between-web-parts-connected-web-parts-using-spfx/

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    1 person found this answer helpful.