I am experimenting with CRM Word Templates, which for the most part seem pretty straight forward, except when it comes to PictureContentControls. Every tutorial I've seen for CRM Word Templates looks pretty much the same and says to only select Plain Text or Picture controls on your template.
The problem I'm having is that I'm unable to get a CRM image to display in the Picture control. I've tried adding a User profile picture to a SystemUser record, and I have a SystemUser template - I see fields for entityimage
, entityimage_timestamp
, entityimage_url
, and entityimageid
, of which I've tried creating a Picture control for entityimage
and entityimage_url
. Each time I get an error when I try to export the Word Template from a User.
I know the database schema for storing that image is a little weird, so to have more control I've also tried creating a signature field (Pen control), which ends up saving the image of a signature directly to the field in the database like this:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...
Although obviously, much longer. I tried mapping that field to the Word Template Picture control and also get an error - I checked the event viewer and it says that it isn't a valid base64 string. I've tried adjusting the string a few times (removing the data:image/png;base64,
) but still get the same error. The moral of the story is that I have no idea what format data needs to be in, in order to populate this Picture control, and there doesn't seem to be any good documentation on it either (at least for CRM). Any help is appreciated!