Sort selected contacts as ordered in admin - twig

It's possible to sort contacts when using the contact selection content type in SULU Admin.
However, I found no reference or example how the set order can be used in the respective display-loop.
How can I get the contacts in the set order?

Related

Link Employee to User in API

Using version 21.210. I am able to create a user via the Contract-Based REST api and I am able to create an employee. How can I link the employee to the user? So, I want to do the equivalent of selecting a "Linked Entity" on the Users screen (SM201010).
I see a ContactID field in the Employee/ContactInfo entity but, it doesn't appear to be mapped to anything. Also, it doesn't show on the entity when I query any employee using a GET and $Expand. I'm thinking that I could use the ContactID from the Employee to plug into the "LinkedEntity" field on the User.
Any thoughts would be great.
TIA!
It is linked by the UserID field on the Contact record(that is linked to the Employee via the Employee.DefContactID field). Users.ContactID is a virtual field but in the RowSelecting event it is populated by selecting a contact record where Contact.UserID is equal to Users.PKID.
So you would need to set the UserID field on the employee's Contact record to the user's PKID value. In addition there is also Employee.UserID that you would want to set equal to the Users.PKID value. The virtual field is populated using that Contact.UserID value but in the RowUpdating handler Acumatica is updating both the Contact and Employee records when Users.ContactID is changed.

Show specific data from excel to specific user in sharepoint

I have an excel sheet where there are two columns:
Email
loyalty points
example:
Email
Loyalty Points
abc1#company.com
248
abc2#company.com
540
My requirement:
When a user (abc1#company.com) login to his SharePoint he should see the token value as 248 and when the user (abc2#company.com) login to SharePoint then he should see the token value as 540.
Till now I have created a page on sharepoint and now I am wondering how to load data specific to user and display it in the sharepoint page.
Solution might be to Import That excel to a SharePoint list. Now based on situations:
A) Unique Item Permission
You can set unique permission per item in the SP library, then set it only for managers group and specific user.
Set unique item permission part can be automatized with WF or Power Automate Flow as well, after that it can be done for large amount of items (limit for unique item permission in SP list is 50 000)
B) View with filter
If the Loyalty Points are not secret and you just dont want to spam users with a lot of rows....you can create a list view in SharePoint list...Where you limit the values with Filter. (Library settings > Views > Create View) in Filter part you select person/group Column "Email" and in value you can put [Me]
[Me] and [today] are only available dynamic filters in View settings
You can display this view on HomePage for example and it will show always values only for specific user.

Netsuite saved search for all contacts (Prospects, Customers) and leads

I have customers and prospects as companies and a lead can be individual or company. I need to create a saved search that returns all of the contacts of prospects, contacts of customers and all of the leads in one list. I can do a contact search where status = all available statuses and I get the primary contact of customers, primary contact of prospects and all leads (individual or company) If I add contact.name to the results tab, I get all contacts of prospects and customers but I lose all of the individual leads. I'm attaching image of the criteria and results field. This setup returns the primary contacts and all leads but I need all contacts. My goal is to get a list of every contact or lead in NetSuite to send to external system.
Do a Customer search with the following criteria:
USE EXPRESSIONS = YES
Contact : Internal ID is not none Or
Is Individual is true
In your results you can use a Formula(Text) to get the proper name and/or email:
decode({isperson},'Yes',{altname},{contact.entityid})
Finally heard back from support. It turns out you can tell NetSuite to treat individuals like contacts:
When you navigate to Setup > Company > General Preferences, you have there an option to SHOW INDIVIDUALS AS CONTACTS. When this feature is enabled, individual type customer records will now show in list of Contacts
You will need two separate searches to accomplish this. One for the Leads and one for the Contacts as these are two separate Tables in NetSuite.

Infopath - Create a drop-down List from Active Directory "Department" field

Is it possible to create a Drop-down list in InfoPath which connects to Active Directory and fills the list with UNIQUE Department Values only (no repeating ones)
I need this for an InfoPath so when a user entering the data can pick one of the departments listed in the drop-down. Any help would be appreciated.
I've had a look at the people picker control, which works great for User names, but the department field is a separate field and has nothing to do with the user I pick, so I simply need a control which is populated by the unique Department codes in AD.
Any help would be appreciated.
You should really contact your administrator for this sort of information. You do not want a form to query every AD user to pull their department and get the unique values just to populate a drop down list. It is very possible to obtain the list of unique directories, however you should work with your administrator to populate this data to an XML web page or other similar solution and then connect your form to THAT data source through the form. The point is you are missing a step of obtaining the queried data.
With that said you can obtain the department of the user by querying the get user profile service to obtain the department name, elinating the need to even create a populated drop down list. See this article.

filter items in a list view on sharepoint

Basically i have created a list by importing a spread sheet which contains username as one of the column. I now want to create a specific view which will show only items in the list only based on currently logged in users how do i do it.
I've tried using [Me] with matching column from the imported spreadsheet but it was not working as expected.
[Me] will work for the Field of Type User, while Importing there might be a change in the Type of the Column. Check that.

Resources