My First PCF control

This PCF control embedded on the Dynamics 365 form (Typically Case form) aids the agent to query their Frequently Asked Questions database in a natural language leveraging QnAMaker.

In the index.ts, I am making a call to QnAMaker’s API in order to pass the question as parameter and retrieve the answer. That’s all. It is as simple as it sounds. You need to make the appropriate changes as indicated below to get it to work.

For your reference, here is the QnAMaker api details on QnAMaker portal.

Once done, follow the steps documented in this article to package as Dynamics 365 solution and import.

This PCF control can be bound to any multiple line text field.

Here is a quick demo:

And, here is the source code.

Hope you find this useful!

Leave a comment