Discussions
Process Automation Actions Sequence
Hi ASI,
I have a task which has to send a communication template and run three stored procedures , I am just curious what is the order of running of these actions?
Are these executed from top to bottom or random order?
Posted by Parteek Chhabra almost 5 years ago
Get login name of on behalf of user
Is there a c# method to get the login name of the person you are on behalf of? We have an asfx ipart that we are trying to make work with on behalf of mode, and essentially it adds some products to the on behalf of person's cart. However, what we are seeing instead is that it adds it on to the logged in user's cart instead.
I believe the issue has something to do with how the user is initialized with the iPart as indicated from the code below. Any suggestions?
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
if (!IsPostBack)
{
OneTimeInitializations();
LoadStates();
}
if (Asi.Security.AppPrincipal.CurrentIdentity.IsAuthenticated && Asi.Security.AppPrincipal.CurrentIdentity.LoginIdentity != "")
{
iMISID = Asi.Security.Utility.SecurityHelper.GetOnBehalfOfUser();
Asi.iBO.IiMISUser user1 = (Asi.iBO.IiMISUser)Session["LoginUser"];
if (user1 == null)
{
user1 = Asi.iBO.ContactManagement.CContactUser.LoginByWebLogin(Asi.Security.AppPrincipal.CurrentIdentity.LoginName);
}
CContact CurrentUser = new CContact(user1, iMISID);
Asi.iBO.ContentManagement.CWebUser user =
Asi.iBO.ContentManagement.CWebUser.LoginByPrincipal(HttpContext.Current.User);
PartyData person = MembershipManager.FindPartyByPartyId(user.ContactId);
Thanks,
Julie
Posted by Julie almost 5 years ago
Calling an IQA using the REST API
I have created an IQA with a required url filter (@url:PartyId) and I am trying to call it with:
baseURL/api/iqa?QueryName=$/FolderName/IQAFileName&PartyId=eq:146639
This is the response I'm getting:
{"$type":"Asi.Soa.Core.DataContracts.ValidateResultsData, Asi.Contracts","IsValid":false,"ValidationResults":{"$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":"In IQA query, first criteria must be equal to QueryName or QueryDocumentVersionKey"}]},"Warnings":{"$type":"Asi.Soa.Core.DataContracts.ValidationResultDataCollection, Asi.Contracts","$values":[]}}}
The syntax seems correct based on other posts and documentation. Does something need to change?
Posted by Kristofer Munro almost 5 years ago
/api/Item endpoint Commerce Product status
Hello,
When querying the /api/Item endpoint, ItemStatus is only present if the commerce item isn't active.
It also has magic numbers that aren't used elsewhere(?).
e.g. Inactive items show as "ItemStatus": 1, Marked for deletion items show as "ItemStatus": 3
However when you query ?ItemStatus=A or ?ItemStatus=I it appears to work as expected.
Querying using the magic numbers does not work.
This issue is documented in Issue Tracker: https://support.imis.com/hc/en-us/requests/114375
Thanks.
Posted by Lee almost 5 years ago
POST to Party API
Running into an issue with creating both Individual and Org records through the Party API. No errors generated, just the issue below.
Has anyone ran into where the Name and Name_Address rows (Name_Address Purpose and Address Num gets populated) get created successfully, but the Address values getting passed in (i.e. Address 1, 2, 3, City, State, Zip, Country) do not? Also then Full Address does not get populated within Name or Name_Address.
Are there fields or a field that is “required” by the API to populate these values correctly?
Thanks,
Chris
Posted by Chris Green almost 5 years ago
Single Sign-out
Hi,
We were able to configure SSO for our clients following this instructions:
- https://help.imis.com/imis2017/Features/RiSE/Maintenance/Single_Sign_On.htm.
Now **we want to give the possibility sign-out.**
How can we achieve this.? How do we remove user session?.
Any help or tips would be appreciate.
Thanks.
Roberto.
Posted by Roberto almost 5 years ago
How to test a complex webform based iPart
How would you suggest to test a complex webform-based iPart ? We are working on one now and we were thinking about what is the best way to test our new iPart in Visual Studio.
Kind regards,
Julie
Posted by Julie almost 5 years ago
CsProduct and Kits (Collection of Items)
Hi,
I need to programatically duplicate and modify some items in our store.
It will be fine for general items, but I'm not sure how I'm going to handle production collections.
The /api/CsProduct endpoint contains a property called IS_KIT, but I'm not sure where to find the actual list of items, or the table where this collection is defined.
Any assistance would be greatly appreciated.
Thanks.
Posted by Lee almost 5 years ago
Custom Table and BO
So we created a custom table and got the REST working, but when we create a BO based on the table with the same name, I don't know how to set it up so that the BO when pushing to the table is not trying to insert a new ID/primary key and just let the table auto increment.
My table had a column set as primary key and indentity turned on with auto increment. But the BO is trying to post an ID to the table causing an "Cannot insert explicit value for identity column in table 'XXXX' when IDENTITY_INSERT is set to OFF" error in the backend.
If there is a better way to handle the BO to custom table with the same names, please let me know. I know this is somewhat outside of the SDK, but trying to use the REST to push data into a custom table and then using the imis tools to pull the data out. I know I could turn around and pull it all back out via REST.
Posted by Richard Baugh almost 5 years ago
SOAP support
My understanding is SOAP isn't supported for public use in the cloud. Should this be updated? https://developer.imis.com/docs/soa-web-services
Posted by Ian almost 5 years ago