• Who We Are
    • About Us
    • Factor - D
    • Our Networks
    • Accolades
  • What We Do

    SERVICES

    • Consulting / Implementation
    • Migration
    • Development

    OUR SOLUTIONS

    • GUMU Integration
    • BPortaly
    • Sales Commission
    • Shipping
    • IOT

    COMPREHENSIVE SERVICES FOR

    ERP

    • Acumatica
    • Sage Intacct
    • Sage X3
    • Sage 300
    • Sage 100
    • Sage 500

    CRM

    • Salesforce
    • D365 CRM
    • Sage CRM
    • Creatio
    •  

    Other Solutions

    • E-commerce
    • EDI
    • POS
    •  
    •  
  • Resources
    • Case Study
    • Blogs
    • Videos
    • Ebooks
    • News
  • +1 888 221 6661
Contact us
Career |
  • Africa
  • Middle East

Sage CRM – Tips, Tricks and Components

Explore the possibilities with Sage CRM insights through our comprehensive blogs. As a leading Sage partner, Greytrix helps businesses maximize their Sage CRM potential with its rich expertise and immense knowledge. Here, you will find blogs that feature expert advice, tips & tricks, best practices, and comprehensive guides on customizing and configuring Sage CRM for your business. Stay informed with our regular updates and expert insights!

Auto login using SageCRM WebServices

By greysagecrm | August 27, 2009
0 Comment

As we already know that Sage CRM’s Web Service API (application programming interface) enables developers to manipulate CRM records remotely with SOAP (Simple Object Access Protocol) over HTTP using XML (Extensible Markup Language). It is possible to access a CRM server or a hosted system from a specified client machine in order to read, create, update, or delete records for Companies, People, Opportunities, or Cases.

The main steps involved in communicating with the Sage CRM Web Service involve The user then accesses the WSDL file from the client and prepares the request. The client machine passes the request with its parameters to the Web Service. The Web Service processes the request and sends a response to the client. The client receives the response synchronously, and it processes the data returned or it deals with the error.

In order to read/write any records in SageCRM you first have to connect to the SageCRM system. The below example illustrates how we can do that.

private static void LogonToCRMSystem()
{
try
{
SID = binding.logon(“admin”, “”);
binding.SessionHeaderValue = new SessionHeader();
binding.SessionHeaderValue.sessionId = SID.sessionid; //Persistent SID
return true;
}
catch (SoapException e)
{
Write(e.Message);
}
catch (Exception e)
{
Write(e.Message + “n” + e.StackTrace);
}
}

Here if you notice we have to pass the SageCRM user name and password in order to login to SageCRM using web service. But can you login via web services without a user name and password!!! Yes you can. But for this you need to know something else. The SageCRM’s active session id and URL, of course. If you know the session id then you can even use as a substitute for COM API. Here is how you do it.

private static void LogonToCRMSystem()
{
try
{
binding.Url = getWsUrl(url);

//assign the session id
binding.SessionHeaderValue.SessionHeaderValue = new SessionHeader();
binding.SessionHeaderValue.sessionId = sessionId;

return true;
}
catch (SoapException e)
{
Write(e.Message);
}
catch (Exception e)
{
Write(e.Message + “n” + e.StackTrace);
}
}

Related Posts

  • Login Error in Sage CRM
  • Password Reset Mechanism in Sage CRM
  • Auto Generation of Cases in Sage CRM after Email In
Category: Sage CRM Tags: login, webservices
Post navigation
← Make the maximum out of Library functionality in CRM NEWSLETTER tab in Self Service →

Greytrix Website and Blogs

    • Greytrix
    • GUMU™ Cloud
    • Greytrix Africa
    • Sage X3 – Tips, Tricks and Components
    • Sage 100 & 500 ERP Tips and Tricks
    • Sage 300 – Tips, Tricks and Components
    • Salesforce.com Tips and Tricks by Greytrix

 

sage crm integration

Recent Posts

  • GUMU Sage 100 WebAPI (NEW!) versus SData
  • GUMU™ Sage 100 API
  • How to Enable the Sort Option for Favourites in Sage CRM 2024 R1
  • Managing Tags in Sage CRM 2024R1:  Enabling, Disabling, Viewing and Deleting
  • Boost Your Business Efficiency by Integrating Job cost Module using GUMU™ integration. 

Archives

Awards

Premier Partner of the Year Premier Partner of the Year
Platinum Partner of the Year Platinum Partner of the Year
The CEO Story The CEO Story
Gold Partner pf the Year Gold Partner pf the Year
Top Excellence Distributor Top Excellence Distributor
  • na.sales@greytrix.com
  • +1 888 221 6661
  • B301, 3rd Floor, Everest Nivara Infotech Park, MIDC, Turbhe,
    Navi Mumbai 400 705. India

Our Global Locations >>

Who We Are

  • About Us
  • Factor - D
  • Our Network
  • Accolades
  • Career
  •  
  •  

Services

  • Consultation & Implementation
  • Migration
  • Development

Solutions

  • GUMUTM Integration
  • BPortaly
  • Sales Commission
  • Shipping
  • IOT
  •  
  •  

ERP

  • Acumatica
  • Sage Intacct
  • Sage X3
  • Sage 300
  • Sage 100
  • Sage 500

CRM

  • Salesforce
  • D365 CRM
  • Sage CRM
  • Creatio
  •  
  •  
  •  

Other Solutions

  • E-commerce
  • EDI
  • POS

Resources

  • Case Study
  • Blogs
  • Videos
  • E-books
  • News
  •  
  •  

Connect

  • Contact Us
  • Privacy Policy
  • Terms Of Use
  •  

© 2025. Greytrix, All Rights Reserved