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

Notifications

Announcements

No record found.

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

    File was deleted.

  • Ahmed Jarada Profile Picture
    30 on at

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

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    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

    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

    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

    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

    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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 60 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 51

#3
Satyam Prakash Profile Picture

Satyam Prakash 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans