These docs are for v20.3.44. Click to read the latest docs for v20.3.186.

Discussions

Ask a Question

Table of table of contents doesn't take user to section of developer site

Table of table of contents doesn't work to menu pages.

Sample Code from IMIS SDK - Is there a replacement for this code or can anyone make it work?

This is code from developer.imis.com - I am trying to load an Invoice into the Shopping Cart. Billing Cycle has already run, but I need the Invoice. The Invoice has this strange notation ####:###### - specifically the second set of numbers which I need to feed to the ItemDetails page/content record. It appears to be in this format : "CASH:{partyId}:{billingRunResults.LegacyBillingDataUsedByService.BillingLogKey}" Does anyone know how to get this code to work, or how to replace this code, or know whether this code is necessary if I want to load Renewal Membership Dues to the cart? Or can someone steer me toward the more modern approach? // // Run membership fees billing cycle string billingCycle = "Regular Membership Fees"; ILegacyBillingService billingService = Resolve<ILegacyBillingService>(); LegacyBillingData runData = new LegacyBillingData { BillingCycleId = billingCycle, BillingRunName = "{billingCycle} Test", IsRenewal = true, IndividualBillingPartyId = partyId, RunDate = tomorrow, EffectiveDate = effectiveDate }; LegacyBillingResultsData billingRunResults = billingService.Run(runData); // Instantiate invoice ID, cart manager for renewal invoice, and find invoice by the ID string invoiceId = "CASH:{partyId}:{billingRunResults.LegacyBillingDataUsedByService.BillingLogKey}";
ANSWERED

Error running PUT on /api/CommunicationLogRecipient

Can someone please confirm that I can't update /api/CommunicationLogRecipient via a PUT call? I assume not as I'm getting a 405 (method not allowed) but it'd be nice to know what's not possible and what is. I can POST to it, just can't seem to PUT to it. Thanks.

Are parts of the site down right now?

Are parts of the site down right now? Authentication and combo order worked yesterday now aren't.
ANSWERED

iMIS cart.AddItem() throws error

We think this has to do with a shipping method and/or payment method or "something" in the cart AddItem process that is required, but not present. However - code has been running fine for years. Someone DID remove Shipping Methods, and we see that Payment Details on the Cart_Home page is missing. The item gets added, but no pricing is there either. cart.AddItem("PRODUCTCODE", Convert.ToDecimal(quantity)); //pseudo The failure occurs in the Asi.Client.ServiceModel dll v20.2.49.5903 Any idea how to trace down this error. I can manipulate the cart further and see which objects are present at the time of the call. Here is the stack trace: Error: Service Error: Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ServiceModel.FaultException: Error: Service Error: Object reference not set to an instance of an object. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [FaultException: Error: Service Error: Object reference not set to an instance of an object. ] Asi.Soa.ClientServices.CartManager.AddLine(OrderLineData line, Uri websiteEditUrl) +497 Asi.Soa.ClientServices.CartManager.AddItem(String itemId, Decimal quantity, Uri websiteEditUrl, String sourceCode, String shipToPartyId, String orderLineNote) +755 Asi.Soa.ClientServices.CartManager.AddItem(String itemId, Decimal quantity, Uri websiteEditUrl, String sourceCode, String shipToPartyId) +97 Asi.Soa.ClientServices.CartManager.AddItem(String itemId, Decimal quantity, Uri websiteEditUrl, String sourceCode) +88 Asi.Soa.ClientServices.CartManager.AddItem(String itemId, Decimal quantity, Uri websiteEditUrl) +79 Asi.Soa.ClientServices.CartManager.AddItem(String itemId, Decimal quantity) +67 USPTA_InsurancePurchase.USPTA_InsurancePurchaseDisplay.btnCheckout_Click(Object sender, EventArgs e) in c:\Users\ascension\Source\Repos\uspta\USPTA_InsurancePurchase\USPTA_InsurancePurchase\USPTA_InsurancePurchaseDisplay.ascx.cs:553 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +11765069 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +150 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1665

AddItem throws Object Not Set to Instance of Item

I have an older version of iMIS. Something changed in iMIS and now our custom cart code throws an Object not Set to instance of item... we suspect it may be payment methods or shipping method. Here is stack trace on cart.AddItem() Server Error in '/processor' Application. Error: Service Error: Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ServiceModel.FaultException: Error: Service Error: Object reference not set to an instance of an object. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [FaultException: Error: Service Error: Object reference not set to an instance of an object. ] Asi.Soa.ClientServices.CartManager.AddLine(OrderLineData line, Uri websiteEditUrl) +497 Asi.Soa.ClientServices.CartManager.AddItem(String itemId, Decimal quantity, Uri websiteEditUrl, String sourceCode, String shipToPartyId, String orderLineNote) +755 Asi.Soa.ClientServices.CartManager.AddItem(String itemId, Decimal quantity, Uri websiteEditUrl, String sourceCode, String shipToPartyId) +97 Asi.Soa.ClientServices.CartManager.AddItem(String itemId, Decimal quantity, Uri websiteEditUrl, String sourceCode) +88 Asi.Soa.ClientServices.CartManager.AddItem(String itemId, Decimal quantity, Uri websiteEditUrl) +79 Asi.Soa.ClientServices.CartManager.AddItem(String itemId, Decimal quantity) +67 USPTA_InsurancePurchase.USPTA_InsurancePurchaseDisplay.btnCheckout_Click(Object sender, EventArgs e) in c:\Users\ascension\Source\Repos\uspta\USPTA_InsurancePurchase\USPTA_InsurancePurchase\USPTA_InsurancePurchaseDisplay.ascx.cs:553 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +11765069 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +150 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1665
ANSWERED

Communication Log - REST API, different Message Type

How do I add something to the Communication log using a Message Type other than email? The SQL table CommunicationMessageTypeRef has 4 different options, and I want to use something other than "Email" but I can't figure out which field in which call to insert the different value. Everything I try just shows Email on the output. I have no problems (now) writing to the log (3 POST calls but it's there), just can't get that value correct. Thanks.
ANSWERED

REST postman Collections for Import

Does anyone know the place from where we can import Postman Collections? I saw at innovations that ASI shares a location from which we can Import Collections... If you know please let me know...