cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
liun Helper I
Helper I

New/Updated PCF code is not loaded by Dynamics

I might be missing something obvious, but I am having difficulty to get the updated PCF code taking effects. Basically the modification to the code is not been run, Dynamics stuck with an older version. Here is what I have done:

1. Change code in index.ts

2. "npm start" runs fine with new code,

3.  run "npm run build"

4. Increase version number in solution.xml (in the hope of forcing reload)

5. run msbuild in solution folder. (My solution is packed as "managed")

6. import solution in Dyanmics 

7. During import, choose "overwrite customizations"

8. open the form that used the PCF, make a fake change, and publish again (in the hope of forcing reload).

9. clear Chrome cache. 

 

After loading the page, open Chrome developer tools, under pcf_tools_{guid}, the  index.ts still display the old version of the code. The change did not take effects either in the app. 

 

I was able to get new code in previously (might have been using unmanaged solution), but somehow Dynamics just get stuck with the old code now. 

 

Any ideas?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft
Microsoft

Re: New/Updated PCF code is not loaded by Dynamics

Did you remember to increment the control version in ControlManifest.Input.xml?

View solution in original post

2 REPLIES 2
Microsoft
Microsoft

Re: New/Updated PCF code is not loaded by Dynamics

Did you remember to increment the control version in ControlManifest.Input.xml?

View solution in original post

Highlighted
liun Helper I
Helper I

Re: New/Updated PCF code is not loaded by Dynamics

That did the trick. Thx!

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Users online (7,079)