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

Discussions

Ask a Question
ANSWERED

Random errors making simple GET calls to a panel data source

Client is running iMIS 2017 20.2.65.9955. Set up the panel yesterday, tested application with no errors. This morning the GET to the endpoint is throwing 500 errors - confirmed via Postman as well. Have tried recycling the app pool to no avail. General error is: ``` System.ArgumentException: Error creating a repository for: EntityTypeName: Foo, Exception has been thrown by the target of an invocation., System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Must specify valid information for parsing in the string. ``` The endpoint is: ``` https://www.client.org/Asi.Scheduler_clientimis/api/Foo?Limit=1 ``` Any idea? Thanks.
ANSWERED

Report Writer - Advanced Report: How to add additional catergory/access BO

Hello Everyone - I am learning how to use the Report Writer tool. I am basically trying to re-make an SSRS report in report writer. As I go through the Advanced Report wizard, it asks me to select categories. I would like to use an existing Business Object but I do not see a way to select it or add it. Any advice?
ANSWERED

How to get and post data to https://reinz.imiscloud.com/api/CsRelationship/ endpoint?

Hi, I need some help on this. I am trying to post data to https://reinz.imiscloud.com/api/CsRelationship/ endpoint and before posting I can't get the data through an id using above endpoint. I am getting 400 bad request when I try to get data through id. This is the URL I used to get data- https://reinz.imiscloud.com/api/CsRelationship/411609 Error message: {"$type":"Asi.Soa.Core.DataContracts.ValidationResultsData, Asi.Contracts","Errors":{"$type":"Asi.Soa.Core.DataContracts.ValidationResultDataCollection, Asi.Contracts","$values":[{"$type":"Asi.Soa.Core.DataContracts.ValidationResultData, Asi.Contracts","Message":"The identity did not match expected number of elements."}]},"Warnings":{"$type":"Asi.Soa.Core.DataContracts.ValidationResultDataCollection, Asi.Contracts","$values":[]}} Also, if I try to post data, I am getting "Do not have permission". I followed the example shared on this post https://developer.imis.com/discuss/5f45283c22311e044a92fcb8 but doesn't worked for me. Here is the json, I am trying to post { "$type": "Asi.Soa.Core.DataContracts.GenericEntityData, Asi.Contracts", "EntityTypeName": "CsRelationship", "PrimaryParentEntityTypeName": "Party", "PrimaryParentIdentity": { "$type": "Asi.Soa.Core.DataContracts.IdentityData, Asi.Contracts", "EntityTypeName": "Party", "IdentityElements": { "$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib", "$values": [ "411609" ] } }, "Properties": { "$type": "Asi.Soa.Core.DataContracts.GenericPropertyDataCollection, Asi.Contracts", "$values": [ { "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts", "Name": "BeginDate", "Value": "0001-01-01T00:00:00" }, { "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts", "Name": "EndDate", "Value": "0001-01-01T00:00:00" }, { "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts", "Name": "FunctionalTitle", "Value": "" }, { "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts", "Name": "GroupCode", "Value": "" }, { "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts", "Name": "ID", "Value": "411609" }, { "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts", "Name": "Note", "Value": "" }, { "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts", "Name": "RelatedToID", "Value": "411613" }, { "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts", "Name": "RelatedToName", "Value": "" }, { "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts", "Name": "Relationship", "Value": "INCHARGE" }, { "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts", "Name": "Status", "Value": "" }, { "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts", "Name": "Title", "Value": "" } ] } } I hope to hear soon with some reply that works for this endpoint. Many thanks
ANSWERED

Can we bulk insert into a panel?

EMS latest - is there a bulk insert option? Thanks.
ANSWERED

Error creating new subscription

Hello, Is there a way to create new Subscriptions records no matter what a member status is? A `POST` request to endpoint `/api/Subscription` results in the following error: **Error: Error creating new subscription. Business rule violation. The member is inactive** It is understandable iMIS would only allow new subscription record on active members... Is there a way around the business rule there? Thank you for your support.
ANSWERED

Can we set the product price we add to the cart to any price we desire using the Restful API?

ARRS is a PIAS client and we are at rick of losing them as clients because of the inability for special pricing in commerce. Excerpt from email from Joe John re:\ARRS Storefront below: ~~~~~~~~~~~~~~~~ Hi Joe, I asked our partners at Mosaic app if they have experience working with the Restful API cart and can set the price to whatever we like using the API call. I have examples of the SOA cart working this way but never done this with the Restful API. How hard would it be to check with ASI Dev to determine if this is something we can do with the API “Set the product price we add to the cart to any price we desire” using the logged in user authentication for a member as a workaround for this issue? My fear is a staff user account can change the price to whatever they want but a member cannot even if it is their own cart. The only other option would be to have them go to a hidden coupon form, pre-populate it and submit it behind the scenes using jQuery. If we cannot find a way to address this special pricing for store products for ARRS they may end up leaving iMIS. I told John I would follow up with him this week. We need to think of something. Thanks Joseph John Please let me know if what Joe John is think is feasible or even possible. Thanks. Joe Robinson
ANSWERED

Multi currency

good day, does iMIS support multi-currency, where we can update exchange rates per day or week, etc. we have a situation where customers pay from different countries and we want these payments to go direct using their currencies and handled using existing exchange rates
ANSWERED

Data Models and Swagger JSON - Version 20.3.135

Good afternoon. It was great to hear about the updates of the API and the more frequent documentation going forward. We can see that the endpoints have been updated at the API Reference section; however, have the Data Models and Swagger JSON files been updated for the new version at https://developer.imis.com/docs/imis-rest-api-data-models-and-swagger-json-files? If not, do you know if or when these will be updated. Thanks, Korey
ANSWERED

Update CsContact.CompanyId in REST

When sending a PUT request to CsContact and changing the CompanyId value nothing gets changed. How do we move a member record from one company to another using the REST API? Is [Creates a GroupMember](https://developer.imis.com/reference/postgroupmember-1) the only alternative? Please advise. Thank you, Molivouth.
ANSWERED

Pending payments

i am struggling with posting payments through the api, my payments are always in pending state, what could be the problem, below is my payload: { "$type": "Asi.Soa.Commerce.DataContracts.PaymentData, Asi.Contracts", "Amount": { "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts", "Amount": 1122, "Currency": { "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts", "CurrencyCode": "USD", "DecimalPositions": 2 }, "IsAmountDefined": true }, "payorParty": { "$type": "Asi.Soa.Membership.DataContracts.PartySummaryData, Asi.Contracts", "PartyId": "252333", "IsMarkedForDelete": false }, "IsReversible": false, "BatchId": "220822-1", "Description": "sampleDescription", "FinancialEntityId": "IVCXATZ", "PaymentDate": "2022-08-22T18:44:36.9012878+02:00", "PaymentId": "20220822184436911", "PaymentMethodId": "ABCXX 7086", "PaymentReference": "20220822184436937" } and the response that i get is below: { "$type": "Asi.Soa.Commerce.DataContracts.PaymentData, Asi.Contracts", "AdjustedAmount": { "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts", "Currency": { "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts", "CurrencyCode": "USD", "DecimalPositions": 2 }, "IsAmountDefined": true }, "PaymentApplications": { "$type": "Asi.Soa.Commerce.DataContracts.PaymentApplicationDataCollection, Asi.Contracts", "$values": [] }, "PaymentId": "46369", "PaymentDate": "2022-08-22T16:44:36.9012878+00:00", "BatchId": "220822-1", "Amount": { "$type": "Asi.Soa.Core.DataContracts.MonetaryAmountData, Asi.Contracts", "Amount": 1122, "Currency": { "$type": "Asi.Soa.Core.DataContracts.CurrencyData, Asi.Contracts", "CurrencyCode": "USD", "DecimalPositions": 2 }, "IsAmountDefined": true }, "Description": "sampleDescription", "PaymentMethodId": "ABC 7086", "FinancialEntityId": "ICAZ", "PaymentReference": "20220822184436937", "UpdateInformation": { "$type": "Asi.Soa.Core.DataContracts.EntityUpdateInformationData, Asi.Contracts", "CreatedOn": "2022-08-22T18:46:13.3061321Z", "UpdatedOn": "2022-08-22T18:46:13.3061321Z" } } what could be the problem with my payload