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

Discussions

Ask a Question
ANSWERED

GET or POST to Query or QueryService?

Is there information on exactly how we should be accessing IQA's now? We were using the IQA endpoint but that is moving to the QueryService. I was POSTing to it's _execute handler but then saw that you've added the ability to make a GET call again. I was able to Get /api/Query?QueryName=... and pass in the limit and offset, etc. but then I wasn't able to pass in a parameter at that point. We are on 20.3.90.44742 and would like to make sure we're using the most future-proof calls as we develop a new website.
ANSWERED

Rest Api - Manage Users

Hello ! I need to do 2 things with Rest Api now to manage Imis Users 1. Update Username for a given PartyId 2. Set a password for a Username (or PartyId) I’m already able to create a UserName for a PartyId using this url --> https://{{URL}}/api/User The version of Rise is 20.2.65.9830, which is 2017. Thank you very much !
ANSWERED

Update Customer Type

I am trying to update customer type and status via Party. I used the postman collection as a jumping off point but I have been unable to get anything other than a 400 or 500 error back. My script looks like this: jQuery.ajax(url + "/api/Party/" + id, { type: "PUT", headers: { "RequestVerificationToken": document.getElementById("__RequestVerificationToken").value }, "dataType": "json", "contentType": "application/json", "data": JSON.stringify({ "$type": "Asi.Soa.Membership.DataContracts.PersonData, Asi.Contracts", "PersonName": { "$type": "Asi.Soa.Membership.DataContracts.PersonNameData, Asi.Contracts", "FirstName": fn, "InformalName": "", "LastName": ln, "FullName": "" }, "PartyId": id, "Id": id, "Status": { "$type": "Asi.Soa.Membership.DataContracts.PartyStatusData, Asi.Contracts", "PartyStatusId": "Dr" }, "AdditionalAttributes" : { $type: "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts" Name: "CustomerTypeCode" Value: "NM" } }), success: updateCount(), error : function(xhr, textStatus, errorThrown ) { jQuery.ajax(this); return; } }); } Any help is greatly appreciated

iMIS api calls failing on PUT and POST api calls with 400 errors

jQuery.ajax("https://www.test.org/iMIS/api/cs_Event_Speakers", { type : "GET", contentType: "application/json", headers: {"RequestVerificationToken": document.getElementById("__RequestVerificationToken").value}, success: function(data){console.log(data);} }) The following is failing with a 400 error however: var apiData = { Abstract: "test", Agreement: 1, Assistant_Info: 0, Date_Modified: "01-01-2020" Event_Code: 465, File_Location: "C:\Path\To\File", Function_Code: 746, Function_End_Date: 038, Function_Start_Date: "01-01-2020"}; jQuery.ajax("https://www.test.org/iMIS/api/cs_Event_Speakers", { type : "POST", data: apiData, contentType: "application/json", headers: {"RequestVerificationToken": document.getElementById("__RequestVerificationToken").value}, success: function(data){console.log(data);} }) Any help on this would be greatly appreciated!
ANSWERED

iQA Group Update

It would be handy if there was functionality to do the same thing as the "Save and Refresh Group Members" UI Button in the iQA Editor. Unless I've missed something I cannot find an API method that simulates that. (Sometimes daily is not frequent enough, and perhaps even better being able to do it "event driven" would be more ideal such as on event registration)
ANSWERED

GroupMember endpoint with committees.

Hello, We are trying to use the RESTful API on committees. According to the documentation here: https://developer.imis.com/reference/groupmember#getgroupmemberbyid We should be able to retrieve a committee record as follow: https://imistour2847.imiscloud.com /api/GroupMember/COMMITTEE%2FAWARDS%3A194 Note: "COMMITTEE%2FAWARDS%3A194" being the GroupMemberId value for "COMMITTEE/AWARDS:20134" The response is then an HMTL page with the message: "An unexpected iMIS error has occurred. Please try your operation again; if you still receive an error, contact the system administrator." Any idea what is going on there? Thank you for your help.
ANSWERED

Soa configuration section not found

Hi all, I tied to use EntityManager in a .NET project but I got an exception "Soa configuration section not found." I tried to look for documentation of how to configure the SOA client app but didn't find anything. What I find is "https://developer.imis.com/v1.0.1/docs/using-soap-and-nettcp". But the ASI client support team let me know that "this is already quite old documentation and it doesn't look like we supply that anymore and it would not have been maintained." They suggest me to ask for help here. Is anyone know how to set up the SOA .NET client? Thanks in advance. Cheers, Fred

Register for event function with custom price using REST api

Hi, I want to register a contact for an event function, and to have the price be custom/overriden using the REST api. I know how to register using the EventRegistration functionality, but am not sure about how to register using the Cart to override the price. Can you explain/provide example code on how to do this for iMIS 2017? Thanks, Brian.

Issue in purchasing function in registered event through REST API

I have an existing event registration and want to update that by purchasing new functions. Can anyone help me in fixing my problem? I am sending PUT request to {{URL}}/api/EventRegistration/{{EventRegistrationId}}.

Issue with Serialize and Deserialize the <MonetaryAmountData>.

Hi, I tried to use Json.Net to deserialize the result from the API call, I got the following error: "Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'Asi.Soa.Core.DataContracts.MonetaryAmountData' because the type requires a JSON primitive value (e.g. string, number, boolean, null) to deserialize correctly. To fix this error either change the JSON to a JSON primitive value (e.g. string, number, boolean, null) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object. You could see the same error with this test: string testString = "{ \"$type\":\"System.Nullable`1[[Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts]], mscorlib\", \"Amount\":345.0, \"Currency\":{ \"$type\":\"Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts\", \"CurrencyCode\":\"AUD\", \"DecimalPositions\":2, \"ExtensionData\":{ \"$type\":\"System.Runtime.Serialization.ExtensionDataObject, System.Runtime.Serialization\" } }, \"IsAmountDefined\":true }"; MonetaryAmountData test = JsonConvert.DeserializeObject<MonetaryAmountData>(testString, settings); It seems that it asks for a primitive string instead of a JSON string. Then, I tried to serialize a MonetaryAmountData object and got "345". And the error became "Newtonsoft.Json.JsonSerializationException: 'Error converting value "345" to type 'Asi.Soa.Core.DataContracts.MonetaryAmountData'. " when to deserialize it, which meant it didn't accept the primitive string. MonetaryAmountData testAmount = new MonetaryAmountData((decimal)345.0, new CurrencyData("AUD")); // testAmount = {345.00}, the currency part was missing. string testSerialize = JsonConvert.SerializeObject(testAmount, Formatting.Indented); // testSerialize = "345", it was a primitive string. MonetaryAmountData testDeserialize = JsonConvert.DeserializeObject<MonetaryAmountData>(testSerialize); Is there anything I am doing wrong? Anyone successfully deserialized JSON to <MonetaryAmountData> object in ASP.NET? Cheers, Fred