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
saintrjsaintrj 

I'm stumped

I have this code on an email template but the error says that the field name "Product2" is not valid. Is this because it is a picklist? If so How do I capture this value for the table>

 

<apex:repeat var="cx"

value="{!relatedTo.QuoteLineItems}">
          <tr>
             <td><a

href="https://na1.salesforce.com/{!cx.id}">View</a> |
             <a

href="https://na1.salesforce.com/{!cx.id}/e">Edit</a></td>
             <td>{!cx.Product2}</td>
             <td>{!cx.Quantity}</td>
             <td>{!cx.OSTI_Requested_Multiplier__c}</td>
             <td>{!cx.OSTI_Disty_Allowed_Margin__c}</td>
          </tr>
</apex:repeat> 

Starz26Starz26

Product2 in the standard object name not a field name. Do you mean to use the name field?

saintrjsaintrj

Yes, but I thought that was it.  This is the Quote Line item. CAn you tell me what the field name should be?

Starz26Starz26

Try name

 

Not sure what field you want to display

saintrjsaintrj

Quote Line Item Product (Name)

Starz26Starz26

I am not the best with quotelineitem stuff but I believe that product is onle of those special cases. You would have to get the pricebookentryID from the quotelineitem record and look up the pricebook entry.

 

someone correct me if I am wrong....

Starz26Starz26

These are the available fields when doing a describe sobject on quote line item:

 

saintrjsaintrj

How does this help me? There has to be a way I can send the infroamtion ia acutally need!

 

I am not a sophiticated APEx guy, so I need a bit more help than  maybe some others, (this is actually my first attempt)

 

I absolutely have to communicate what the product name is of the line item.

 

I need help!!!!