I have 2 custom links on my orders object and I am trying to put it on my Visualforce Email Template but when i try to save, it says Error: Invalid field Search_PO_Contact_Name for SObject VM_Sales_Order__c. The code i wrote is as follows

Search PO Contact Name: {!relatedTo.Search_PO_Contact_Name}
Search PO Contact Name: {!relatedTo.Search_Lab_Name}

is there a way i can get them on my visualforce page

1 Answer 1


You simply forgot to suffix your fields with __c!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy