• Chad Saar 8
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 4
    Replies
This issue has come back up with only one of my SalesForce accounts. I have tried downloading a new WSDL and adding the fix but the type conversion still fails.
Im having a problem with a custom script out of Laserfiche Workflow. I have it setup to send a birthday over to a salesforce contact. Everything in the code looks good but the birthdate does not come over. Here is an example of the code. 

s = GetTokenValue("RetrieveFieldValues_Birthdate").ToString();
            if (string.IsNullOrEmpty(s) == false)
            {
            string date = s;
            DateTime dt = Convert.ToDateTime(date);
            contact.Birthdate = dt;
            }

Has anyone else had this issue or can you guys see whats going wrong. Thank you.
 
Hey everyone, 

the enterprise WSDL in the soap API exposes a well-known bug in the XmlSerializer in .NET.  Apparently MS has known about the bug since 2009 and has decided not to fix this.  You can read about it here on this link:  https://connect.microsoft.com/VisualStudio/feedback/details/471297

To work around this, I tweaked the WSDL with a dummy attribute.  Everyone that uses .NET with the Enterprise WSDL is going to hit this problem.  Hoping this helps.

<complexType name="ListViewRecord">
  <sequence>
   <element name="columns" type="tns:ListViewRecordColumn" maxOccurs="unbounded"/>
  </sequence>
  <xsd:attribute name="tmp" type="xsd:string" /> <!--Added by Chris Berg per bug found in XML Serializer-->
</complexType>
 
Cheers!

I am newbie. I want to create a user with SOAP Partner WSDL. Here are steps I’ve already taken:

 

-       Downloaded the partner WSDL

-       Reference that file in Virtual Studio 2010

 

Now can you give me an example code that create a new user using C# and how I can use “using” statement to import salesforce names spaces.

 

Thanks a lot

  • October 16, 2012
  • Like
  • 1