To update the Account record we need to first add web reference to the account.wsdl.
Than can make use of AccountUpdate method of Account Entity.
// Login to the CRM server
string loginUrlString = “https://servername/Services/Integration?command=login”;
// Get the valid Session id to be appended for each subsequent request
String sessionID = ManageSession.Login(loginUrlString, @”orgname/username”, “password”);
try
{
// Download the account wsdl from the Admin section of the CRM application
// Add web reference to the wsdl
// Create the instance of the opportunity entity
Account myAcc = new Account();
myAcc.Url = “https://secure-ausomxapa.crmondemand.com/Services/Integration;jsessionid=” + sessionID;
// Create the instance of Account Data
AccountData[] myAccData = new AccountData[1];
myAccData[0] = new AccountData();
// the order number to be updated
myAccData[0].stOrder_Number = “orderNumber”;
// the id of the account to be updated
myAccData[0].Id = “orderID”;
// creating ListOfAccountData object
ListOfAccountData myLstOfAcctData = new ListOfAccountData();
myLstOfAcctData.Account = myAccData;
// using AccountUpdate_Input
AccountUpdate_Input myAccUpdateInput = new AccountUpdate_Input();
myAccUpdateInput.ListOfAccount = myLstOfAcctData;
// using account’s Accout Update method to update the record
AccountUpdate_Output myAccntUpdateOutput = myAcc.AccountUpdate(myAccUpdateInput);
}
catch (SoapException ex)
{
}
catch (Exception ex)
{
}
That’s it …
Discover more from Nishant Rana's Weblog
Subscribe to get the latest posts sent to your email.

Hi,
I have SIEBEL CRM ON DEMAND web interface, I need to know what database is being used underneath to store the actual data. How do I do that?
Secondly, Is there a way to get the Data Model being used by SIEBEL CRM on demand system to store data?
LikeLike
Hi Nishat,
Thanks for this really useful website and ‘to the point’ information that saves a lot of time.
Normally when I run into issues, the customer services ask for SOAP trace whereas all I have done is generate the proxy classes in C#.net and calling functions to query the data. How can I provide them the SOAP messages or SOAP trace so that they can investigate things at their end?
Thanks, Owais
LikeLike
Hi Owais,
Thanks for your comments.
You could use the following tool for capturing soap messages.
http://articles.techrepublic.com.com/5100-10878_11-1061764.html
or you could follow this article as well
http://blog.encoresystems.net/articles/how-to-capture-soap-envelopes-when-consuming-a-web-service.aspx
Regards,
Nishant Rana
LikeLike
Hi Nishant:
This is the first time I’m trying to use CRMOD web services. In your example you create an instance of the Account entity. I tried to do exactly the same but then I noticed that Account is an interface and not a class in the Object browser.
Any ideas why is that?
Thanks!
LikeLike
Hi,
Can I query Contact based on a telephone number? I can query account with fname and lname, but not with telephone number. Most probably I’d be mistaken somewhere.
Have you ever did that?
Waiting for your comments
Thanks
LikeLike
hi, i have the query how to attach the files
against the perticular account
in oracle crm using webservice object
LikeLike
hey Yashwant..
here u go.. http://www.iowntech.com/?p=158
LikeLike
Hi Nishan,
Need help on a small Siebel integration project.
Functions:
Read customer information from Siebel
Update customer information in Siebel
Using Web-services.
if interested to take this small project, please e-mail me ASAP.
regards
Raj
LikeLike
Hi,
I am having problem with configuring endpoint address to query the account records. Can any one have worked on it, please send the sample code here, following code does not work at all, the Url property is removed and Account class has become interface and new class introduced AccountClient.
Account myAcc = new Account();
myAcc.Url = “https://secure-ausomxapa.crmondemand.com/Services/Integration;jsessionid=” + sessionID;
Thanks
LikeLike
i want to know how to fetch build in child object like opportunity team , opportunity partner of opportunity using web service 2.0
LikeLike
Does anybody have any idea, how to give Direct Soap call to CRMOD without using any WSDL.
LikeLike