• shailesh_patil.ax1006
  • NEWBIE
  • 25 Points
  • Member since 2011

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 7
    Replies

Is there a way or SF api to convert thebelow format that I am getting in response from a web service to SF Datetime type.

2011-05-16T18:30:08.923-07:00

 

Thanks in advance

PK

Hello all,

 

I'm using Ron Hess's JSONObject port and I'm having a strange issue. getString works fine, but trying to call getInt results in a compiler warning that says there is no such method. I can see perfectly well that JSONObject.cls has a public method called getInt which has the right signature, but the Apex compiler just doesn't seem to understand that!

 

Does anyone know what the problem might be?

i want to add CustomField to standard object (Account),code(Metadata api CRUD-based) :

 

  CustomObject co = new CustomObject();
  co.setFullName("Account");
  CustomField nf = new CustomField();
  nf.setType(FieldType.Text);
  nf.setLabel("yy");
  co.setNameField(nf);
  
  UpdateMetadata updateMetadata = new UpdateMetadata();
  updateMetadata.setMetadata(co);

 

Like thi,after run ,Exception come out:

    Exception in thread "main" AxisFault
 faultCode: {http://soap.sforce.com/2006/04/metadata}UNKNOWN_EXCEPTION
 faultSubcode:
 faultString: null: Invalid fullName, must end in __c
 

can anyone help me....?and thanks!

How to insert values in Custom Object ?

I have one ClientDetails as Custom Object with the set of fields in it & I want to insert values in it using SOQL query.

So how can i achieve it ?????

Thankx in regards...

Hello All-

 

Can anyone suggest me to get rid of this error? What does this error mean?

 

"System.LimitException: DML currently not allowed"

 

Thanks

Is there a way or SF api to convert thebelow format that I am getting in response from a web service to SF Datetime type.

2011-05-16T18:30:08.923-07:00

 

Thanks in advance

PK