Being a SharePoint developer we all know that The User Information List stores information about a user by having some metadata set up for the user. Some examples are Picture, Email, DisplayName, LoginName etc. ) This list is only visible to and accessible by administrators.
However today we faced very weird issue that not able to access this hidden list. we can browse it under "/_catalogs/users" but we were not able to query it
We were not able to query the User Information List in SharePoint 2013 On-Premise.
Today was trying to work on the display template in SharePoint Online.
As documented every where, that can go to Site Galleries->Master Page->Display Templates : <your site url>/_catalogs/masterpage/Forms/AllItems.aspx and display templates folder, to get the existing templates.
However, I was just seeing all the .js files not the HTML where I supposed to work.
Finally found the cause is Publishing Feature.
We must turn on SharePoint Server Publishing Infrastructure feature in the Site Collection Features. for the HTML pages to show up, from there we can edit the HTML files and create new display templates.
Third workaround was to add some loop which can add some pause before query, somehow even after safe loop, result was uncertain.
Finally found the impressive feature of Nintex, which has saved from all these hassles.
“Commit Pending Changes” – How exactly it is working ?
SharePoint workflow not starting the workload immediately, that means if I am adding update list item action, so its not sure that it will go and update the item at the same time, SharePoint doing batch job for it. As a result we are getting wrong result while querying it immediately.
As well other important thing to remember that The SharePoint workflow engine doesn't necessarily commit batched operations in the order they are displayed on the designer
Commit Pending Changes will wait/pause the workflow or say it waits until the workflow commits all other batch job started then after will move further.
This is very useful when you want workflow engine to follow the order you specified in workflow designer, or where the scenario where dependency on next to next actions.
Impressed with this Workflow action, Hope this piece of information will save your time!
In Nintex 2013, requirement was to show the user's "Display name" in email. looks a very simple issue by looking at the definition. However, to achieve this in workflow have to choose proper way to implement.
Two options are available to get this.
1. Using "Call web service" action
2. Using " Query user profile"
To move ahead with first step, we need to use Regular expression, web service and query xml as described here in https://community.nintex.com/thread/1353 lots of configuration require to make this work. as well to store credentials of admin to call the web service, need to make the constant in Nintex management.
So In my implementation, I choose second option, fairly simple to use.
Steps to use "Query user profile" action to get display name:
1. Add "Query user Profile" from actions tab
2. Double click to configure it, and select the person field , here selecting "Created By" field of the custom list
3. Expand the properties to retrieve, and select "Name" , click on Add
4. Select the variable name where you want to save query result, here using string variable named "CreatedByDisplayName"
5. Now, add the email notification action and from insert reference add the workflow variable.
6. That's all we are done.
No configuration/web service call/credentials require to store.