web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

PCF component With ReactJS

(0) ShareShare
ReportReport
Posted on by 30

Hi Everyone,

I'm trying to save the value of Dropdown with React-JS in the field of the form. But it not saved with form like PCF component.

Packages I used:

  • React
  • Fluent UI
  • PCF

Files:

One Drive

I have the same question (0)
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: PCF component With ReactJS

    File was deleted.

  • Ahmed Jarada Profile Picture
    30 on at
    RE: PCF component With ReactJS

    Sorry for this mistake. the new link 1drv.ms/.../s!AnpYqFU6KWVdgq5L5WcjLUtUjwSlxg

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: PCF component With ReactJS

    There could be multiple reasons why your code won't work. You should just troubleshoot it to figure out where it breaks exactly.

    I have a question though. There is an OOB control that allows converting string fields to dropdown with entities. And if it is not something that works for you you can use one of the existing controls instead without reinventing the wheel - pcf.gallery/.../

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: PCF component With ReactJS

    So you're basically copy-pasting the code from github.com/.../index.ts and trying to make it work? Can you explain why do you need it?

  • Ahmed Jarada Profile Picture
    30 on at
    RE: PCF component With ReactJS

    Yes,just i take the get method because that same i need. I need to fetch data based on another field, then run get entities to fetch data and display it on the dropdown. Actually i'm new in the PCF, but familiar with React.

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: PCF component With ReactJS

    If my reply (or replies) answers your question take a minute and verify the answer. You can do it by clicking "Yes" at the top of the reply (or replies) under the label "Does this answer your question?"

  • Suggested answer
    Ahmed Jarada Profile Picture
    30 on at
    RE: PCF component With ReactJS

    Actually I solved  it by change notifyOutputChanged in OnChanged to notifyOutputChanged(), that's working to save it on the form.

    Note: WebAPI only working on PowerApps form, so if anyone test it locally its not working and raise a bug for that.  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 226

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 81 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 68 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans