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

Discussions

Ask a Question

Client based iParts - configuration page/options

In the documentation for the client based iParts there is an option to enter the: URL to the html file that is used to configure content items of this type. But I do not know how to set up the configuration page for the client-type iParts and cant find an example anywhere. Can someone send me the secret key to the hidden dungeon? Thanks.

Pay of cart partially with REST API

I have a client on cash billing and the dues products are added by running a billing cycle. How can I apply a partial payment against this in the shopping cart in iMIS Cloud 20.3? Any pointers are much appreciated. Thanks a lot Alex

does anyone know how to populate a dropdown box with only items corresponding to a parameter fed into an IQA?

I have a CCO with two tabs on a page. My goal is to list items in a dropdown box that correspond to a selected eventCode. On the second tab, I have (what the world normally calls) a dropdown box which is supposed to be powered by an IQA. The dropdown box should show the values returned by the IQA. The IQA uses the "@url:EventKey" convention to retrieve a value from the ?EventKey=EVENTCODE parameter in the querystring to "filter" the list of values only to those that match the EventKey. What I expect to happen: When I click onto the CCO 2nd tab -- I expect to see a dropdown box populated by items returned from the results of the IQA. Specifically, I would see items like this in the dropdown box: BOB JONES - Event W111XX0000 JOHN BOBBY - Event W111XX0000 JANE DOE - Event W111XX0000 ...etc What actually happens: When I click on the CCO 2nd tab -- I see the text of the IQA with the entire returned set of data from the IQA that shows that the IQA IS retrieving the querystring EventKey parameter. There is no dropdown box...but there IS an Edit Pencil. When I click Edit Pencil, the dropdown box appears (which is odd), but the list of items is now completely unfiltered by the querystring parameter value. I see this when the tab originally loads which indicates the IQA DOES sense the parameter... BOB JONES - Event W111XX0000JOHN BOBBY - Event W111XX0000JANE DOE - Event W111XX0000....etc. I am looking into the FormFieldData and FormFieldResponseData classes which don't make a lot of normal sense to me in the terms of what I would call a DropDownBox that would expect an array or just plain old list of items in the Text and Value format. Can someone detail to me how to produce a normal DropDown box list of selectable items in iMIS that can react to some value fed into it in any way (whether it be via hidden field, or a session variable...or (preferably) a querystring value. I need the IQA to list items in a dropDown box for selection. This would normally be a rather standard task...but is odd in my opinion the way iMIS handles this task. NOTE: I apologize if EventKey and EventCode seemed mixed up here - but that is iMIS doing that, not me. the documentation describes "feeding parameters in to IQA" and using the "@url:EventCode" ("@url:EventKey") convention but nothing seems to work. If someone could explain this, it would very much this and other iMIS dropdown boxes in the future... Jack Donahue
ANSWERED

"Try It" example for IQA, default behavior doesn't follow default values

On this example: https://developer.imis.com/reference/iqa#query-results1 I provided a bearer token, the suggested query, and the suggested value of "smith". I didn't enter the limit field, which was set to 1. The result I got back appears to have used 100 or 0, because I got back 100 rows. The resulting JSON contained this: "Offset": 0, "Limit": 100, "Count": 57, When I changed the value to something else and back to 1, it gave the expected results: "Offset": 0, "Limit": 1, "Count": 1,

OAuth 2.0 - Cross Site access to REST

From my experience the only way to retrieve an OAuth token from REST, from an external client is to use authentication details of a user that is in the RemoteService role when posting. POST: https://MyImisDomain/Asi.Scheduler/token Otherwise, if I remove the user from this role, even for MANAGER, I see the error { "error": "invalid_grant", "error_description": "Not authorized for Services." } Is this correct, do I always have to use the RemoteAccess role or I have I missed something? What rights does the RemoteAccess role grant? From my brief testing it appears to grant access to other unrelated party's data. Is there a way to use REST, cross site, where regular public user authentication can be used and the ClaimsMapping / Templates are honoured?
ANSWERED

User Activities Endpoint

Is there an endpoint to CRUD a user's activities? If not, this should be there. As supposedly any action that gets done by the system has an API somewhere. Also, if not, can we get one added? Thanks!

Offset

Offset=2 should just start at record 2. Instead it starts at the first record and the offset doesn't matter. Example to reproduce get in postman api/party?offset=2 and then /api/party?offset=3 not the returns are the same parties. We should consider adding something like below to the documentation so developers know the way it works isn't a bug. It takes the value that you send as offset and divides by 100 (integer division) and gets the number of the actual page to return, which in your case is page 101/100 = 1 (and indexing is zero based) meaning that it will return the second page (only) so 100 items (zero based from 100-199). It will essentially override offset value to (offset/100)*100 = 100 and take only 100 items (integer division). If you look at the image bellow you will see return value of Offset set to 100 (start), Limit (how many it should take), Count(how many there are in collection), HasNext (has more pages), NextOffset (the next offset value to use to get the next page).

Getting bearer token from passthrough endpoint for call to external API

I am trying to find the simplest way to use an externally hosted API that will process requests that a user has insufficient rights to do using the passthrough API. I have a process working that uses the SSO to get a bearer token that the external API can then use to query the scheduler endpoint to verify a user is authenticated. I'm looking for a simpler way to allow the external API to verify that a user is authenticated and who they are. It seems like I should be able to use the passthrough API to get a bearer token that could be passed to the external API without all the overhead of using the SSO functionality, but I can't get the syntax of the call correct. Here is a call that works and return a bearer token from the API but it uses the "password" as a grant_type which I won't have. I want to make the same call, but use the requestverificationtoken for authentication. Is this possible, and can you post a raw request as an example so I can get the syntax of the call correct. Here is a call that return a bearer token from the passthrough API but it requires username and password instead of the requestverificationtoken. You can see that it has the required cookie and request verification token in the header already. It just needs the correct grant type and any other required fields in the body. POST https://redacted.com/web/Token HTTP/1.1 Origin: https://redacted.com Referer: https://redacted.com/web/iSamples/Member/MemberHome.aspx?WebsiteKey=48014db4-df2a-4281-8f1d-89be8482f7a7 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134 Content-Type: application/x-www-form-urlencoded Accept: */* RequestVerificationToken: TFQQ19FDAUvG75qEouRPw3du7aZI10hN4nbd6IqyxGjAT7qtQdmReHTWVqLyf5AjB-8sY36eIMcWyQdRQuaW2qKUkZIWrsvbQmBBJ6fcUQE1 X-Requested-With: XMLHttpRequest Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br Host: redacted.com Content-Length: 59 Connection: Keep-Alive Cache-Control: no-cache Cookie: ASP.NET_SessionId=deowstk5htgfqmgkxw2ky1yg; __RequestVerificationToken_L3dlYg2=gOaXQNn1yuLn89DDVQ6o5ZFaXCtWnqrPXB5DM1DvO30u4LEK7wU9URKL4McX4022DGVcOWsLKwYnqSEimrHOPV0Ld2ez0VN4UnVF7NfXKCE1; Asi.Web.Browser.CookiesEnabled=true; Login=EC44F0C0B275DAEDD8AA2686FC10359378FD46C23E2F4A71570555EAFA896322459BBCE2003E81293179DEC15F6301854DC81A5745F7CF4FD1FEE0147DC7F48C112E2F4775DA4BD8465B0C7203FE176D1B095DFF015F4291EC93A39241EC1B67EABA0ADBD42E6293F9C6DA12BC9E3D531D6E386AF13B29A0357DC1E16CEBB4CCB225702AF0C2C8BE20FC8F685E9C6B24C1D4194A68A6437E65559E2BA88D8BC4ACB8D36DE243F087D69C3D27D0F1953C0EF8F4F86C79E6776638B544B4C1FC409DF52C0B728EA67FA476617CF9B72FBBA693DFC05FFD28FC47C2FE32B4E02BF5; .AspNet.Cookies=KdzzuFy03RitWo1jDlIMguv4Jh3GHiWs5yNn-LqZhhBLYQXVlsBT0wBct-b_xP-Tmrxq8nUdyhu_08p5dLwpEQTQwlHcLrB-IK2le-IMVm6aZYPWdhT3dPcLhBuL4TRFMACBHKfEMB0Zl_mZ5rLlYm_NzVU4REgIl5Qbf-KeYkxOSdMs8FcfChBLpO9dRsmq4s_PuPl4djtagei1CG_yJ0p7bC5NE4B5SJ-h1JKn1Y5ZDzYATVfxW1fhH42Enw2QSaCnCyYYMHJZZahM-zMC2Ye-M_DpwBJpAJk3oTW6ss6fPDzlDUsO9SVP1BxZMxJ2uAte7wHG19-fhDtRwfCLFB-FwiRbkGq_aE4Tgji_klZYtyFD2usS712rhMk3t44WG0C1lik7HWaHYdE9ZPXWUc_4daM8WAED-9uBpWB5cPib-xU0Qhh56V6tfbk9UbxdwTpDzTBvqWU2WnlaXsJCq1Bge1lW_mPQvBi8M9dGp20hv--Lqbyt_sV2s0DN_P_HWSnGuPFDKoUKayAnFYoiBcnjFKzQ1QWhIYbIOAKUfPwMw3jClFM48GWf2VT6XuL7vIKw1vQ6D6btOotiJpaHiUDhRICirtQpvu-mTyVl_iuPMpoQwaP1Jc9JixoxnbNY5jnYYhc0sCULArM6xuumPTvOZqmkhqNiVlQ4QMUL4CC4mMGFqjWxNAYhj4lUcrOaPI4XEVmCDEbu_abPKxFS7ja2B_x8uq6P8VMpOkcoEfz4dt0ps0oPe9IIBYTnz6jZmf6EKIwNKGAnmzxAzXdmxhRqwCj9cwJ-7dOX87513NbQuQe2RKADnS5eLoN0eS57RENOUKziNxJEV643bXAm9WCoXNWMmCP_8uCid9n9cLNRzBTU-5XUCeVO57f8kC8aLrD5wfOZYOTbvLQANXxjG2nMYrCtnS5PI11EWiTmDcxDt9pphNdp_X6gwGYr3ZCNA1iJzIl0ILoj9dRzfErEybflDoQuLbgwRl-ZBtPXN2nrPsGpFiMRK2t80q2dJ-UkGyLt5a7r-9d7AP_H4vHddw; AnonymousCartId= grant_type=password&username=redactedusername&password=redactedpassword

REST and encryption

I have a need to encrypt data for specific field - not credit card data. It's intended to run on the RiSE site (not cloud) via the web (not desktop, reporting, etc.). Is there a REST equivalent to Asi.Security.Utility.Encryptor or similar? Basic code runs in the scheduler site but not in the general site (can't find KEK file errors). If REST is available I'd like to use it. Thanks.
ANSWERED

Get Identity of "On Behalf Of" user in aspx iPart

I'm trying to get the ID of the target user (the user select via the "On Behalf Of" functionality). While *Asi.AppContext.CurrentIdentity.LoginIdentiy* returns the ID of the logged in user, *Asi.AppContext.CurrentIdentity.TargetIdentity* just returns a user key. How can I get the Target User's ID?