• charu setia
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies

I have a user who just installed the Office Connector from inside SF (in the Desktop Integration section of Personal Setup), and it appears to have installed a version 4.0 of the toolkit.

 

He's getting the "Can't find project or library" error that others have reported getting as a result of a mismatch between Version 2.0 of the toolkit and Version 6.16 of the Excel Connector.

 

Has there been an updated version of the Excel Connector that will work with Version 4.0 of the toolkit? If not, how do I downgrade him back to Version 3.0, since the only version that will download from SF setup is version 4.0?  

 

This is not the most technical of users, and I'm supporting him from 200 miles away, so I can't just go to his computer and do it for him. So asking him to go to the Developer Toolkit type sites and figure out what to do is asking for disaster. Please help!

This is driving me mad. I have a vf "contacts" page in which I have created a very simple validation rule.

 

 

$RecordType.Name = "Oxford University Applicant" && NOT(RIGHT( Email , 9) = ".ox.ac.uk")

 

 I am using the standard controller for the contacts object with an apex controller extension to allow me to add data into other objects in the sf database.

 

My issue is that  the visulaforce does not acknowledge the validation rule on insert and instead of receiving a friendly error message to the vf page "sorry you must enter a correctly formatted email address" I receive an error via email. With the following message: FIELD_CUSTOM_VALIDATION_EXCEPTION.

 

Can I capture this error message? If so how? Looking at the documentation I tried this:

 

Contact.RecordTypeId = contactrecordtypeid; try { insert Contact; } catch (DmlException de){ System.debug('Data exception:'+ de.getMessage());} catch (Exception e) { System.debug('General exception:'+ e.getMessage()); }

 

 Which appears to stop me recieving the error via email but does not stop the execution of the rest of the code or return a error message to the vf tag <apex:pageMessages /> as expected?

 

Or do I have to write some apex code that does exacly the same thing as the validation code in which case how do I check that the last 9 charcters in apex are the same as the email prefix required?

 

Thanks 

 

 

Angus