Skip to main content
11 events
when toggle format what by license comment
Sep 2, 2013 at 16:13 vote accept Soberano
Sep 2, 2013 at 16:13 comment added Soberano that is why you are awesome. :) Thank you for such a nice explanation. I will update my medadataService class as you mentioned :)
Aug 30, 2013 at 23:01 comment added Andrew Fawcett That was fun, see updated answer! :)
Aug 30, 2013 at 23:01 history edited Andrew Fawcett CC BY-SA 3.0
added 2206 characters in body
Aug 27, 2013 at 14:58 comment added Soberano Yea sure. Even i expected it not to be fully populated. But it was throwing the exception i mentioned before. Thank you for your time. May be i am wrong . please help out.
Aug 27, 2013 at 14:52 comment added Andrew Fawcett I don't think you should have to pass a fully populated CustomField personally, i'm a little slammed at present, if your OK I'll try and revist this question for you.
Aug 27, 2013 at 14:35 comment added Soberano Yes,and currently I am using a map of values to do so . Like built a map of this kind. KEYS ['boolean', 'currency','date','datetime','double','email','encryptedstring','integer','multipicklist','percent','phone','picklist','string','textarea','url'], VALUES ['Checkbox','Currency','Date','DateTime','Number','Email','EncryptedText','Number','MultiselectPicklist','Percent','Phone','Picklist','Text','TextArea','Url']. Mapping this way i am getting type_x values dynamically but I do know there must me some way to do it.
Aug 26, 2013 at 15:47 comment added Andrew Fawcett Ah ha, I see your using the Apex Metadata API, let me check this again for you.
Aug 26, 2013 at 15:12 comment added Soberano And I am using deleteMetaData( /*Custom field*/ ) call to delete and I dont fine direct delete method in the apex class generated from WSDL. Am I doing something wrong ? Please suggest. Thanks in advance.
Aug 26, 2013 at 15:02 comment added Soberano System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: '' is not a valid value for the enum 'FieldType' faultcode=soapenv:Client faultactor= ---> This is the exception that is throws. I wonder why does it needs populated custom Field to delete the metadata component as you mention.
Aug 26, 2013 at 14:22 history answered Andrew Fawcett CC BY-SA 3.0