• msc7808
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 15
    Questions
  • 11
    Replies

Hey Guys,

 

I have defined two custom objects as follows:

 

(1) Hotel                        Record Name:    HotelName

(2) CustomContact        Record Name:    Full Name           Sec Field   Hotel: Lookup(Hotel)

 

I have Apex Code

 

 CustomContact__c[] contacts = new CustomContact__c[0];
contacts.add(new CustomContact__c(Business_Title__c='test',TypeofContact__c='Hotel',Hotel__c=HotelName,Name='John Doe'));

 

I am getting an error: 

 

A problem with the OnClick JavaScript for this button or link was encountered:

{faultcode:'soapenv:Client', faultstring:'System.StringException: Invalid id: Dummy Hotel Class.WSUpdates.InsertHotelContacts: line 39, column 115', }

 

Please advise what could be wrong.

 

THanks

 

Manny

Hey Guys, I am just curious as to if this can be done or not. I have created an Object HotelContacts with RecordName "Full Name". Also there are other fields defined such as Salutation, FirstName, MI and LastName. What i need to do is to have a user enter these fields and auto-fill Salutation based on the other fields.

 

Is this possible to do?


Thanks

 

Manny

Hi To all,

How to call External(.net) webservice from Salesforce???

& how to use that webservices in APEX classes & triggers????

Thanks,

Krishna.

Hey Guys,

 

I am quite new to the Salesforce. I am working on creating a test application. I need to implement a Override routine to the Delete so that the user can;t do hard delete of record but rather flag the record as deleted.

 

I found on the set up page that we can override the Delete button however I dont know what to do next. Could you please assist by posting or directing me to an example?

 

Thanks

Manpreet

Hey Guys, I am new to Salesforce Developement. I am trying to create new Custom Fields for Account.
 
I have created Custom Pick List "Account Type" with Values A,B,C and D. I want to populate another PickList  "Segment Type" with values based on user selection for Account Type.
 
How can I achieve this?
 
Thanks

Manny