Browse By Tags

  • Sage CRM API Address Type

    How do you specify a type value (e.g. "Billing", Shipping" etc.) when adding an Address Entity via the Sage CRM API (webservice.add). I can't see a relevant field in the list below:- address1, address2, address3, address4, address5, addressid, addressidSpecified…
  • TotalTaxAmount SetTaxAmountByRow not working

    Hi, I am trying to update invoice's total tax using below code TaxSummaryInfo taxSummaryInfo = journal.GetTotalTaxAmountInfo(); if (taxSummaryInfo.GetCount() > 0) { double totalTax = 10; taxSummaryInfo.SetTaxAmountByRow(1, totalTax); taxSummaryInfo…
  • <Error: 0 in Method UPDATEINT>

    Hi, I have the code below for automatic registration/update of the production transactions. I've been getting an error on the UpdateInit method. oSS2.nSetProgram(oSS2.nLookupTask("BM_ProductionRegister_UI")) objTransactionRegister = oScript2.NewObject…
  • Invalid or missing posting date encountered on Bill of Materials transaction update

    Hi, I've been working on automatic registration of transactions for Bill of materials. but I've been encoutering this issue for a couple of days now. its been throwing me an error that says "Invalid or missing posting date encountered" I opted…
  • Production Entry Revision number

    Hi, I've been wondering if there's a way to get the latest revision number from A Bill of Materials. I've tried to get the value by uising oProduction.nGetValue("Revision$", strRevisionNo) but im still getting the "000" revision number. Thanks…
  • BM ProductionRegister - New object error:200

    Hi, i've been constantly getting the error "System.Exception: <NewObject Error: 200>" when I register the BM production entries. here's what I have coded: oSS2.nSetProgram(oSS2.nLookupTask("BM_ProductionRegister_UI")) objTransactionRegister =…
  • BOM DistributionLine Error

    Hi, I've been wondering for a couple of days now. it seems that the Distribution line is adding a bunch of numbers on my Lot. retVal = oProduction.oLines.oDistribution.nAddDistributionLine("B456") oProduction.oLines.oDistribution.sLastErrorMsg says…
  • Display of TOP content different for CRM objects and ASP or .Net pages

    Hello team, have the following problem with the display of TOP content. It should be displayed as shown here with the FAV icon and extended information on the right. This works in the ASP file and in .Net But if I now go and attach an crm object…
  • Web Services Certificate Error

    I am trying to call an X3 SOAP web services from .Net, but I am receiving a certificate error. Does anybody know how to override the certificate error when consuming X3 SOAP web services in .Net?
  • Getting screen field value to a variable in .asp

    How can I get and assign the value of an field (advance sesarch list) in a screen to a variable in a .asp?
  • Enable COM SDK / API to run in headless mode

    Sage 50 SDK / API requires the Sage 50 desktop UI to remain open. Sage 50 .NET already has this ability implemented exactly how the Sage 50 COM SDK / API should be implemented.
  • How to set date range for customer export? sage50 api question.

    Im exporting sage50 customer details in this code. Please let me know how can I set date range to the exporter object so that will pull only contact updates within certain dates. Code- exporter = (Export)ptApp.CreateExporter(PeachwIEObj.peachwIEObjContactsList…
  • Sage CRM 2021: Using additional parameters passed from a tab or button in a .NET application extension.

    It is possible to pass an additional parameter from a tab or a button. Please see the article " Passing an additional parameter to a .NET dll or ASP page from tab and buttons ". This article will consider two different approaches that for using the…
  • Sage CRM 2021: Passing an additional parameter to a .NET dll or ASP page from tab and buttons.

    It is possible to pass an additional parameter from a tab or a button. The allows a developer to use a single main entity point within the application extension which can then use the extra parameter as a flag to cause Sage CRM to process the page differently…
  • Sage CRM 2021: Controlling field and screen spacing in ASP pages and .NET code.

    Below is a screen shot of the Company Summary screen. Complex screens like this one, either for a system entity or a custom entity, can be built using the APIs. A partial rebuild of the Company Summary Screen using the .NET API is actually included…
  • Redirecting a .Net page back to a system screen or to another custom page

    I have written before how to call a Sage CRM .NET assembly from the user interface. The Developer Guide and existing blog articles discuss how we can call an assembly from a tab menu, a button group, a hyperlink from a grid and how an assembly can be…
  • Creating Appointments and Tasks in the .NET API

    It is very easy to work with communications in the .NET API. Below are the basic code sample to show how to create either an appointment or a new task. Note : The CreateAppointment() and CreateTask() require you to reference both the WebObject and…
  • How Do the specialised classes like DataPage and DataPageEdit know which record to use?

    Imagine you need to create a new entity. I have made the assumption you have created a new Visual Studio project using the Entity wizard in the SDK. You can click the new button, this will call the default method RunDataPageNew. You will then enter…
  • Creating a Basic List with the Web Class for Multiple Contexts

    Below is some example code that shows how to create a simple list with the Web class for multiple contexts. Company Person My CRM (Selected User) Team using Sage.CRM.Controls; using Sage.CRM.WebObject; namespace SA_Basic_1 { class…
  • Debugging CRM .net API dlls

    So you're having difficulty debugging a .net dll with Sage CRM, you have followed all the instructions in the documentation for setting up debugging but it still doesn't work... Microsoft only knows why sometimes the debugger just will not catch your…
  • Using multiple AddEntryGroup within a DataPageNew class

    There was a post recently on within the forums that discussed an a problem a partner was having with building a compound screen using the DataPageNew class public class newOppo : DataPageNew { public newOppo() : base("opportunity", "oppo_opportunityid…
  • Accessing other assemblies from CRM .net dlls

    The Problem: Sometimes you may want to share code across your custom CRM pages that are generated from seperate assemblies. For example you may want to define a Web class for a list page of Custom Entity A and use it in your app factory for Custom Entity…
  • An example using the GridColCheckBox class

    class TestList : Web { public override void BuildContents() { try { string SelectedFields = this.Dispatch.QueryField("SelectedFields"); if ((SelectedFields != null) & & (SelectedFields != "")) { AddContent("Selected Companies "); string[] sArray = SelectedFields…
  • Creating a ListPage that can be Used in Multiple Contexts

    When using the SDK Entity template to quickly create a set of classes to support a custom entity in Sage CRM. It only mentions one records context within the constructor. These are the properties FilterByField FilterByContextId The following code…
  • Hiding .NET Pages from History (Forward and Back Buttons)

    I have mentioned hiding ASP pages from history before in the main blog. See the article " The Forward and Back Buttons in Code ". You need to hide pages occasionally when if they were added to the history it was create nonsensical navigation options…