Get most popular user using JSOM
Hi,
I have a requirement to show "Employee of the month" on my intranet portal. The data has to be collaborated from 1 site collection and communities, blogs under it.
The logic behind this can be any one option from the below.
1. User who has most followers
2. User who has done maximum number of posts
3. User having most mentions
Iterating through all users in a site collection and getting their data seems a bit complex and performance issue might arise.
Any help is appreciated.Thanks
sunny
Hi,
According to your post, my understanding is that you want to get most popular user using JSOM.
Per my knowledge, you need to get and count the followers for each users and and then get the max number.
The appropriate user is the most popular user.
To get the followers of a specific, you can refer to:
SharePoint 2013: How to Get Following and Followers of
User by using JSOM or JavaScript
Best Regards,
Linda Li
Linda Li
TechNet Community Support
Similar Messages
-
How to Get Most Current User View Before Checking In.
Hi,
We have several custom workflows which users can start from end-user menu and have some resource accounts created/modified after approvals.
User view is checked out once at the beginning of each workflow, then some user attributes are modified through forms and user view is checked in with new attributes at the end.
If any user starts a workflow (say W2) before completion of another workflow (say W1) he started before, and W1 is completed when W2 is waiting for approvals or etc., W2 completely discards changes made to user view through W1 since it has already checked out the user view before.
If I checkout the user once more just before checkin, I'm able to get a current user view but this time changes made through forms used in the current workflow are lost.
What's the best way, to get an updated user view of the user without overwriting any changes made out of the running workflow and losing form data?
Regards,
Mehtap.In a situation like this, you should probably change the front end to store the changes in workflow variables instead of using the view directly. Then, post approval, you checkout the view and apply the changes. I've used this approach to perform changes on large numbers of users (kind of like a bulk action, only more reliable).
Alternatively, you can checkout the user object at the beginning of the workflow, and this will prevent your race condition by putting a lock on it. This will obviously cause problems (for you) if your users expect to be able to do multiple changes simultaneously. Don't try this approach if an angry mob will storm your cubicle -- IDM coders are hard to come by.
Jason -
To get list of users using universe designer client tools
Hi Experts,
Is there any way we can get the list of users using universe designer client tool.
Thanks,
Shiva GunturuHi Shiva,
Refer to chapter 12 section "User events enabled for clients"
http://help.sap.com/businessobject/product_guides/boexir31SP3/en/xi31_sp3_bip_admin_en.pdf
In XI 3.1 client auditing is a bit limited, you may need to do some testing to determine if it is possible to audit what you are looking for.
Hope it helps
Thanks
Toby
http://help.sap.com/businessobject/product_guides/boexir31SP3/en/xi31_sp3_bip_admin_en.pdf -
How to get list of users using IN OIM
Experts,
Is it possible to get the list of users who have logged into OIM in past (for example last six months)? as not all people in my organization uses OIM.
Please suggest if OIM(version 9.1.02) has any such functionality or if it is possible to get it from OIM database.
Thanks,
S MOIM will not store last logon date & time. So this is not possible. If you have access manager integrated environment, then OID will have last logon date & time. in such environment, from OID, you can get these details.
-
How can I get the Windows User using ABAP ?
I need to get thru ABAP the Windows user.
Hi Carlos,
You can use the following FM to read the currently logged in windows user id:
DATA: w_userid TYPE char20.
CALL FUNCTION 'GUI_GET_DESKTOP_INFO'
EXPORTING
type = '5'
CHANGING
return = w_userid.
WRITE: 'Windows User ID:', w_userid.
Hope this is what you need.
Sumant. -
Get current loggedin user using silverlight client object model SharePoint 2010?
Hello,
How can i get the current loged in user of sharepoint 2010 in silverlight4.XX version by programtically in C#?
Thanks
Lovkesh PatelHi,
ClientContext clientContext = ClientContext.Current;
clientContext.Load(clientContext.Web, s => s.CurrentUser);
clientContext.ExecuteQueryAsync((sender, args) => {
var currentUser = clientContext.Web.CurrentUser; }, null);
For more information:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.web.currentuser.aspx and
http://stackoverflow.com/questions/3441794/retrieve-current-user-login-in-sharepoint-from-a-silverlight-application
Hope this helps you
Senior Sharepoint Developer,STS [email protected] -
How to get window system user?
Hi,
How to get window system user use PL/SQL(form develope6i)?If you don't use Oracle database then you will have to do one of two things:
(1) Now I'm back in the office I can check D2KWUTIL. The version I have comes with Forms6.0, so it is somewhat out of date, but it has a method called WIN_API_ENVIRONMENT.Get_Windows_Username - which works for NT/95 only, although I'm sure a later version will support more recent OS.
(2) If that's no good then you'll have to use whatever facilities your database offers: I only know Oracle.
I also repeat my suggestion that you try the Forms forum for additional help. This is the Database forum and so is focused on serverside Oracle PL/SQL. For your needs the Developer Suite forums are better.
Cheers, APC -
Most Popular/Second Most Popular
I am trying to retrieve the most popular STATION used. If there is a tie, choose the most recent DESCRIPTION (Table 2) and use the other for second most popular.
The tables are joined by TUB
TABLE 1
ID TUB STATION
100000 1002 3
100000 1002 3
100000 1002 3
100001 1201 4
100001 1202 3
100039 1003 1
100039 1003 5
100039 1003 2
100039 1002 2
100039 1002 1TABLE 2
YEAR TUB DESCRIPTION DATE
2012 1201 LP1 12 18-Jan-12
2012 1202 LP2 12 18-Mar-12
2012 1203 LP3 12 18-Jun-12
2012 1204 LP4 12 18-Sep-12
2010 1003 LP3 10 18-Jun-10
2010 1002 LP2 10 19-Mar-10
2010 1001 LP1 10 20-Jan-10
2009 904 LP4 09 15-Sep-09Any help apreciated
Edited by: 927374 on 15/04/2012 20:21
Edited by: 927374 on 15/04/2012 20:22
Edited by: 927374 on 15/04/2012 20:28
Edited by: 927374 on 15/04/2012 23:57If you read the FAQ, you will see:
>
7) Begging for points
Posting an answer and finishing the post by saying something like "If my answer useful, mark it as correct or helpful" is not acceptable. This is considered begging for points. The points system on the forums, as agreed by most of the regulars on here, is not an ideal system. The last thing it needs is people begging to gain points for themselves so that they can boost their ego by trying to reach "Guru" status to impress their friends. The purpose of these professional forums is to help others, have our own questions answered and to learn new things for ourselves. Most of the experts and gurus on these forums have gained points and their status through simply answering questions well without asking for them. Sometimes points are awarded, sometimes not, and that is up to the original poster as to whether they follow the forum etiquette. Anyone spotted asking for points in any form is liable to have such comments edited out of their post or the post deleted (if deletion isn't removing an actual answer). You have been warned!
>
As your name is a fairly flagrant violation of this, could you please change your name. Thank you. -
How to obtain most popular cities from my users table
Hi.
I've got a 'users' table:
USER_ID --- CITY_ID
1 ---- 32
2 ---- 20
3----- 32
4 ---- 32
5 ----- 17
I would like to obtain the most popular cities from this table, and the number of occurrences. Is this possible to make it easy with an SQL statement?
ThxHere is an example using the emp demo table -
SQL> select deptno, count(*)
2 from emp
3 group by deptno
4 order by count(*) desc;
DEPTNO COUNT(*)
30 6
20 5
10 3You can find full details of aggregate functions like count, and group by and order by in the SQL Reference manual. -
Hi everyone,
Does anyone know how to use JSOM / REST APIs to retrieve the users that are following a specific document in SharePoint 2013?
Thanks in advance,
NamHi Nam,
Please use the sample code to get the followers for the document. Courtesy: Mokhtar
Bepari
using Microsoft.SharePoint.Client;
using Microsoft.SharePoint.Client.Social;
ClientContext clientContext = new ClientContext("http://URL");
SocialFollowingManager followingManager = new SocialFollowingManager(clientContext);
SocialActorInfo actorInfo = new SocialActorInfo();
actorInfo.ContentUri = "<documenturl>"; //set the document url.
actorInfo.ActorType = SocialActorType.Document;
//By using the GetFollowed method you can get the people who the current user is following.
ClientResult < SocialActor[] > followedResult = followingManager.GetFollowed(SocialActorTypes.Users);
//By using the GetFollowers() method you can get the people who are following the current user.
ClientResult < SocialActor[] > followersResult = followingManager.GetFollowers();
clientContext.ExecuteQuery();
Once you get the resultset you can iterate like below:
foreach(SocialActor actor in followedResult)
string name = actor.Name;
string imageURL = actor.ImageUri;
Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply. -
Get the connected users count from sql server using powershell
Hi,
I am working on SharePoint 2013,I am having SQL server 2012.
I want to get the Connected Users count from sql server using power shell.
Can any one please let me know how to implement.
Thanks in advance.
Regards,
Phani Kumar RSorry Tom, I dont like to hear "There is no way" :-(
There is always a way in computer to get what you need (at least it is good as Rule of thumb). I am not sure we will find it here (in a voluntary supporting forum).
Now we (or better the architect of their system) should think of the way :-)
Of course doing so in the forum, while we do know the system and only got a glimpse on what is needed, is not the best idea. I will point some issues which can be related to a solution. Those are not a solotions as it is but something we can use for a solution
once something look in the right way.
* A web connects counter is one of the easier thing to do. The basic idea is just to use the connect event and the disconnect event an adding 1 or removing 1 from the counter. This is best to do in the application using static variable as any way the second
the application is down the counter can be go to hell as we know there is no one connect (there for a counter do not use database usually). Using a web dot-net (or asp 3) application this is done most of the time using the global.asa/global.asax file, which
include the application and session events. for example using the method Session_Start
protected void Session_Start(object sender, EventArgs e) {
// Code that runs when a new session is started
* IIS have a build-in loging system where we can log each and every request/response or only logins users. There is lot we can do with this log files including data mining. Using small bulk insert script we can use the SQL agent to insert those logs to the
database and get the information we need.
* any web developer i want to believe know about the Fiddler application which we use to monitor traffic. A proxy is not the only way to to monitor traffic (it is not good for our case as this is in the client side), there are several option in the server
side.
* SQL trigger on logon can be use to get information on who is loging on and can be logging only specific source (like our sharepoint IP or any sharepoint application). This information (what is the application which connect to the server can be retrive
in several solution without using a trigger as well)
*** (I'll be brief ... I'm getting bored... probably the reader feel the same)
* using extended events and/or profiler we can monitor any connection and save the data or just remember it in shared (static) variable (this
blog show how to do it by the way). Again we can monitor specific application or use any filter in order to get only the sharepoint users
.... and i can continue for several days more :-) ...
"If there is a willing, then there's a way"
"If you can't do it, Then someone else probably can"
"Never say never"
I hope this help somehow :-)
[Personal Site] [Blog] [Facebook] -
Lots of info about one user using multiple computers. What about multiple users with separate Apple IDs using same computer? Having problems getting my wifes new iPhone talking to her apple account on the computer we share (2 users)
You need to create a user account for your wife (or yourself depending on who has the current user account). When syncing, each of you should sign in as a separate user, login to iTunes and then sync. I had this problem when my sister got an iPhone. When we did her initial sync, everything on my iPhone showed up on hers. Apple gave me this solution.
-
How to get anonymous guest link "View Only" and "Edit" URL using JSOM or Search API ?
Hi,
I need to get list item anonymous guest link View Only and
Edit URLs (as shown in image below) using JSOM or SharePoint 2013
Search API.
the URL will be like this - https://<site URL>/_layouts/15/guestaccess.aspx?guestaccesstoken=yRaYGmE9n
Any one has any idea how to do achieve this?
Thanks
ShakirHi Shakir,
To get the anonymous guest link “View Only”, we can use SP.ObjectSharingInformation.anonymousViewLink property in sp.js.
https://msdn.microsoft.com/en-us/library/office/jj246826.aspx
To get the anonymous guest link “Edit”, we can use SP.ObjectSharingInformation.anonymousEditLink property in sp.js.
https://msdn.microsoft.com/en-us/library/office/jj246468.aspx
We can also use REST API to get the guests links:
_api/web/Lists/getbytitle('library name')/items(item id)/GetObjectSharingInformation?$expand=SharedWithUsersCollection&retrieveAnonymousLinks=true
Thanks,
Victoria
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Variable used in FOx formula should get value from user
Hi Gurus,
In my fox formula I want to multiply a keyfigure (say quantity) with a factor. For example if the factor is 10 then all records should get multiplied by 10.
But the requirement is user shpuld be able to give the factor that should be multiplied. That is the l_factor used in the fox function should be a variable which gets value from user. I know we can give variables in filter and planning functions in IP. But can we give values in Fox formula.
I would really appreciate the time and effort.
Thanking you,
Jerry JeromeHello,
May be you can try this solution.
I think you have create a dummy character info-object(Z_Number) of same data type interget number.Create variable for Z_Number and restrict in filter(ZV_NUM).
DATA Z_MAT TYPE 0Material.
DATA Z_NUM TYPE Z_NUMBER.
DATA Z_NUM_READ TYPE I.(Declate same as data type for Z_Number)
Z_NUM = VARV(ZV_NUM).
FORACH Z_MAT.
Z_NUM_READ = Z_NUM.
{Z_KF1,Z_MAT} = Z_NUM_READ * {Z_KF1,Z_MAT}.
ENDFOR. -
How to get message in realtime sent by another user using FM TH_POPUP?
I want to program a chat function between two SAP users by using ABAP.
1.User A send a message to user B by using TH_POPUP,
At the same time, the message is showed in screen as
'Send message'
2.User B get the message
->My problem is how to get the message in realtime which I want to show it in screen as 'Received message'.
Can anybody tell me how to get the message sent by using FM TH_POPUP in realtime?
Edited by: Jing Yu Huang on Feb 6, 2008 2:11 AMHi there
This really isn't a "conversation" type program
1) What does the original user do after sending the message -- I'm not sure if there's a WAIT_FOR_REPLY and even if there were I'm not sure you'd want the original user to have a suspended session waiting for a reply.
2) What does the 2nd user do after receiving the message --if it's just thrown up on his screen then there isn't any mechanism to return a reply from USER A'S SESSION.
You need somehow to have a continually running process which will send a message for example to user B and create an event or do somethimg so that User B is bound to the same session that sends the original message.
2 different users running the same abap don't actually have any common link between them even on remote function calls.
You need to have a central process here that shares a message space between the users (i.e a kernel type module).
Classical Abap won't do (nor is it designed for) these types of processes.
You might be able to find something in some of the 'C' coded kernel calls but as I previously posted before you are far better off using Windows for this type of stuff. (Windows Messenger for example).
ABAP unfortunately is not designed as a multi user "re-entrant" programming language - nor was it intended to be.
Another possible get around is to use the workflow system. User A sends a message which raises an event. This then starts a workflow which transmits say message to user B and notifies him of a message waiting for him. User B can reply which again raises an event and triggers workflow routing the message / reply back to user A.
The response time won't be very good but at least it will work without tying up 2 user dialog sessions - but seriously guys I'd give up on this and just use Windows Messenger or equivalent system.
These type of programs depend on a central server for the message handling - you'd have to replicate this in ABAP -- and Im 120% sure it can't be done.
Cheers
Cheers
Maybe you are looking for
-
Unable to hear caller voice on Z10 after upgrade to OS 10.3.1.1565
Dear Community, I used BB Z10 from Sep last year (Sep.2014) and it was a good phone. But recently, my phone automatically upgrade to newest OS number 10.3.1.1565. I think it is ok with the upgrade. But there is a critical issue happened. I still can
-
How Can I Setup Multiple External Editors In iPhoto'09? (8.12)
My daughter has cortical visual impairment and we are trying to modify photos so that she can get more out of them. Just about everything we need to do can be done in one program like photoshop but it can be tedious and if you know anything about ca
-
Apple Tv's, itunes and an external hard drive
Hey everyone hope you are all well. I was wondering if I would be able to have my itunes library on an external hard drive and then be able to access it from two different apple tv's in different houses.
-
AI Group Config Error 10001 using Virtual Channels
In my LabVIEW block diagram, I usually enter in numbers, e.g. 0,1,2 for the channel string input of AI Config. When I try to use a virtual channel, I simply type in the virtual channel, e.g. 0,K Thermocouple,2. However, this causes AI Group Config Er
-
XML Literal select with multiple nodes
Hi there can anybody tell the correct syntax for the following XML Literal: Dim x = <Test> <%= From item In items Select <top><%= item.X %></top> <left><%= item.Y %></left>