Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Webresource Plugin Step Image is the published record?

$
0
0

I'm a little confused over how webresources are published and getting my plugin to detect the proper component state.

What I want to do:

We have a webresource js file and from time to time there are changes made to that file. If changes are made the plugin does NOTHING. Once the webresource is published then my plugin parses the js file and adjusts any records etc. as needed.

I thought a good way to track the componentstate would be to attach an image to my plugin step. The problem is that the image does NOT contain the delta's as I would have expected. Instead it always displays the published record??

My step is registered:

  • Message: Update
  • Primary Entity: webresource
  • FIlter: All Attributes
  • Exec Order: 1
  • Pipeline: PostOp
  • Exec: Synch.

My image is a PreImage with all parms. I've tried all sorts of variations with preimage / postimage and step pipeline....all the same.

So again the preimage ALWAYS matches the published webresource.

Say I open the js file, make a change, then save it. Update webresource fires and I would have expected the pre-image to contain the new changes...but it doesn't. The image matches / contains all the published record values.

Moving on from the save I now click the publish button and again the pre-image doesn't contain the unpublished values but instead the published values???

I would have thought at the very least the image would contain the "content" of the unpublished record but no..it is the content, componentstate...everything matches published record.

Am I doing / configuring the image / step wrong...or do I just not understand properly how pre & post images work.

Thank You


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>