• Resolved okayaelectric

    (@okayaelectric)


    Hello:

    I am having some trouble loading an image for a record in the product entity from CRM onto the web page I am working on. This is the code I am using:

    My image is the entity image that I can view just fine on the CRM product screen.

    Do I have a setting wrong somewhere or is my code syntax wrong?

    Thank you.
    Joe

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter okayaelectric

    (@okayaelectric)

    I just realized the code didn’t copy/paste. Here it is:

    <img src="/wp-admin/admin-ajax.php?action=msdyncrm_image&id={{ recordId }}&width=300" style="float:center;margin-right:1rem;">

    Thank you.
    -Joe

    Plugin Author alexacrm

    (@alexacrm)

    @okayaelectric
    not sure if we support entity images, let me find out
    George

    Plugin Author alexacrm

    (@alexacrm)

    Hi Joe,

    confirmed, for now we decided not to support entity images using this mechanism. Primary motivation for pushing the feature to the backlog was that, using twig and fetchxml tag it’d be straightforward to build a twig construct that would extract the entityimage and build inline image. Since entity images are small (only up to 144×144), inline image should be just fine.

    HTH
    George

    Thread Starter okayaelectric

    (@okayaelectric)

    Hi George

    Thank you for the follow up. I am not fully understanding though — where is the image stored in 365 for me to be able to access it? As a note and then using the msdyncrm_annotation url to retrieve it?

    Thank you.
    Joe

    Thread Starter okayaelectric

    (@okayaelectric)

    Hi George-

    I just figured it out! So the image is just stored in the Annotation table like any other attachments to an entity record? Then I use the FetchXML queries to get the AnnotationID for the special URL to create a link or show the image?

    Basically, anything I want to surface as an image or other file about the record I attach it as a note in the record in 365?

    Thank you.
    Joe

    Plugin Author alexacrm

    (@alexacrm)

    @okayaelectric,

    yes, you can surface image(s) stored as attachments to Notes (Annotations). entityimage is different, it is stored on the record itself. Here’s some sample code to follow.

    Cheers
    Geor

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Images from CRM’ is closed to new replies.