function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AntonyasLenAntonyasLen 

how to display pictures in my quote

Hi,

 

I created a trigger who will the get the URL of my product's picture.

So far it's working as you can see

but i decided to create a pdf, my pictures will not appear

I don't understand what's happening =/

Sincerely,

 

ajitvermaajitverma

I assume you are using VF page to display product image. Are these images are stored in SFDC as document/static resource. If as document then ensure externally avaialble property is checked. 

Please provide more details on issue and what is the exact implementation.

 

Thanks

Ajit

AntonyasLenAntonyasLen

ok sorry let me give more details.

 

When i'll add one opportunity product to an opportunity one trigger will get the URL for this product. It's an external URL so the pictures aren't stored on salesforce! Why ? because we have to many possibilities of customization.

So the Opportunity product wil have an hidden field Image Url(textfield).

When the salesman will generate a quote every Quote Line Items have a custom field URL.

URL is a Formula text field as you can see below:

 

IMAGE(OpportunityLineItem.Image_Url__c,"Image",100,100)

 

and so far it's working! ( first screenshot on my first post)
But when my salesman will generate a pdf the pictures will not appear and it's my problem =/

 

Thanks a lot.

Antony

 

lizmijohnlizmijohn

Hi,

 

Can I get apex trigger code to display product image to Opportunity line item please?

 

Thanks,

Liz

julieboncourjulieboncour
Hi Antony,

Have you found a solution so far ? I got the same issue.

Thank you,
julieboncourjulieboncour

I finally succeeded to display my product picture on my quote template.

 

I retrieve the product picture from an external website. So, in order to display the pictures on my quote template, i needed to add the website on the Remote Site Settings.

 

Step 1: Create a Text Formula Field wich retrieve the image URL of the product on Quote Line Item:

IMAGE( PricebookEntry.Product2.Picture_URL__c , "Image", 40, 40)

 Step 2: Add the Field created to the Quote Template on the Quote Line Item List.

 Step 3: Go to Setup > Security Controls > Remote Site Settings and add the website where the picture are stored.