Hi @Goutham ,
Given the tests that you mentioned, I'd like to specify a few things. Maybe we get closer to something that we overlooked.
- How do you create the record? Since you are inside a PCF, you should create it using the feature "webApi" that you declare in the manifest
<feature-usage>
<uses-feature name="WebAPI" required="true" />
</feature-usage>
After that you get in your "context" a "webAPI".
Using Xrm.* inside a PCF is not supported.
- calling notityOutputChanges will have no effect for a dataset PCF. That's because there are no output parameters allowed.
- It is not possible to mix a field-PCF with a dataset-PCF. In a dataset PCF you can have also properties, but only of type "input" (not of type "bound"). That means that the control won't be refreshed when the input parameter changes.
So my next test would be:
Being inside the PCF code, after the creation of the record, wait for the promise, and then call
context.parameters.<yourDatasetName>.refresh()
and check the console if you get an error. Check the network protocol, to see the corresponding request and the response. Is the new record listed there?
If I've got it wrong, if you've actually meant to call a refresh from outside the PCF (from scripting), we need to work another way. Just let me know.
Kind regards,
Diana