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 …

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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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

CRM for You and Me

Customer Relationship Mgt App for the Professional

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

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

Knowhere365

Specific topics by Django Lohn on the whole Microsoft365 Stack

Manmit Rahevar's Blog

One Stop Destination for Microsoft Technology Solutions

MG

Naturally Curious

Brian Illand

Power Platform and Dynamics 365

Steve Mordue MVP

A Microsoft Business Applications MVP

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

Two Bite Tips

Valuable Tips To Grow Your Business

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

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.

CRM Keeper

Dynamics 365 Customer Engagement, CRM, Microsoft CRM, Dynamics CRM

EVOLVED365

Step into the world of a Dynamics 365 Consultant

Dianamics PCF Lady

Diana & Dynamics 365 & Power Platform

Sara Lagerquist

No Code Customization Concepts

innovativeaj

developer, designer, writer, fun loving, patriotic, humble and a sweet person inside out :) love and respect people who have a great sense of humor.

Temmy Wahyu Raharjo

Dreaming to be a clean coder and TDD minded programmer.

Transform 365

We blog about problems we face and code we write to help others

%d bloggers like this: