Updating account record using Oracle\Siebel CRM On Demand Web Service in .NET


 

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.

Unknown's avatar

Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

11 thoughts on “Updating account record using Oracle\Siebel CRM On Demand Web Service in .NET”

  1. 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?

    Like

  2. 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

    Like

  3. 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!

    Like

  4. 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

    Like

  5. hi, i have the query how to attach the files
    against the perticular account
    in oracle crm using webservice object

    Like

  6. 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

    Like

  7. 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

    Like

  8. i want to know how to fetch build in child object like opportunity team , opportunity partner of opportunity using web service 2.0

    Like

Please share your thoughts

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from Nishant Rana's Weblog

Subscribe now to keep reading and get access to the full archive.

Continue reading

Power Platform Puzzles

D365 CRM, Power Platform Tips &Tricks

Power Spark

Power Spark By Shrangarika

Van Carl Nguyen

Exploration of Power Platform

My Trial

It is my experience timeline.

Power⚡Thomas

Sharing my knowledge and experience about the Microsoft Power Platform.

Arpit Power Guide

a guide to powering up community

Welcome to the Blog of Paul Andrew

Sponsored by Cloud Formations Ltd

Deriving Dynamics 365

Deriving Solutions and features on Power Platform/Dynamics 365

The CRM Ninja

Thoughts & musings from a Microsoft Business Applications Ninja!

D CRM Explorer

Learn about Microsoft Dynamics CRM Power Platform customization and implementation and other cool stuffs

Stroke // Jonas Rapp

I know pre-stroke. I will improve who I was.

Power Melange

Power Melange By Shalinee

Clavin's Blog - PPUG.ORG

AI - Power Automate - Power Apps - SharePoint Online - Azure - Nintex - K2 - Artificial Intelligence

Sat Sangha Salon

An Inquiry in Being

The Indoencers

The Influencers & Influences of Indian Music

Monika Halan's blog

Hand's-free money management

D365 Demystified

A closer look at Microsoft Dynamics 365.

Microsoft Mate (msftmate) - Andrew Rogers

Experienced consultant primarily focused on Microsoft Dynamics 365 and the Power Platform

Manmit Rahevar's Blog

One Stop Destination for Microsoft Technology Solutions

MG

Naturally Curious

Brian Illand

Power Platform and Dynamics 365

Steve Mordue

The Professional Paraphraser

Subwoofer 101

Bass defines your home theater

SQLTwins by Nakul Vachhrajani

SQL Server tips and experiences dedicated to my twin daughters.

Everything D365

Discovering Azure DevOps and D365 Business Applications

Tech Wizard

Lets do IT Spells

XRM Tricks (Power Platform & Dynamics CRM )

Power Platform & Dynamics CRM

CRM TIPS BY PRM

Mail to crmtipsbyprm@gmail.com for queries and suggestions

nijos.dev

Giving back to the community what I have learned

Power Platform Learning

Your Go-To Resource for Power Apps, Power Automate & More

xrm CRM Dynamics

Dynamics CRM Technical & Functional Info

Dynamics 365 Blogs - Explained in unique way

Sometimes you need to look at things from different perspective.