cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
liun
Advocate I
Advocate 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
alchin
Microsoft
Microsoft

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

View solution in original post

2 REPLIES 2
alchin
Microsoft
Microsoft

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

That did the trick. Thx!

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (3,026)