function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
LukeLuke 

Update Example in VB.NET

Does anyone have an record update example written in VB.NET?  I'd appreciate it.

Thanks,

Luke

GlennWGlennW

Luke;

I have several examples of UpDates in VB.NET and C# (check out www.demandtools.com for a peek at the beta application)

What sort of information are you updating (i.e. what table, number of fields, number of objects to update, etc)

Cheers;

GlennW glenn.wilson@hotshottools.com

 

J_HinderJ_Hinder
Got any samples for using the Partner WSDL to do an update with VB.Net? In particular, I'm struggling with the creation of the array of XmlElements.....
DevAngelDevAngel
Check out the sample code.
J_HinderJ_Hinder
All of the samples that I can find with VB.Net use the Enterprise WSDL. Where can I get some that use the Partner WSDL? I'm pretty sure I just need to see one example and all the other object should behave the same way, right?
J_HinderJ_Hinder
Nevermind, I found 'em. Thanks!
J_HinderJ_Hinder

Well, almost there,

I'm having problems finding information on the correct format for the TimeZoneSidKey, LocaleSidKey & LanguageLocaleKey....

 

 

SuperfellSuperfell
call describe and look at picklist values (or use the Sforce Explorer)
J_HinderJ_Hinder

Tried that already, here's what I'm getting back in my error object:

 TimeZoneSidKey: bad value for restricted picklist field: (GMT-06:00) Central Daylight Time (America/Chicago)

Here's what (well, some of what) calling sDescribe and looping through the values gave me:

Item: (GMT-05:00) Eastern Daylight Time (America/New_York)
Item: (GMT-05:00) Eastern Standard Time (America/Panama)
Item: (GMT-06:00) Central Daylight Time (America/Chicago)
Item: (GMT-06:00) Central Daylight Time (America/Mexico_City)
Item: (GMT-07:00) Mountain Daylight Time (America/Denver)
Item: (GMT-07:00) Mountain Standard Time (America/Phoenix)

I checked to see if I added a space or something, but I haven't. Weird, no?

SuperfellSuperfell
Those look like the labels, not the values, an actual value would be just "America/Los_Angeles"
J_HinderJ_Hinder
That was it. Thanks much!