CRM On Demand - Web Services Integration (MOSC)

MOSC Banner

How to Use the User Web Service to Display the UserId using C#

edited Jan 29, 2014 9:17PM in CRM On Demand - Web Services Integration (MOSC) 7 commentsAnswered

Hi,

May I request for help on how should I code in C# a call on User web service which should return the userId of the logged-in user.

--------------

        private String getLoggedInUserCredentials()
        {
            String userid = "";
            String userSignInId = txtUsername.ToString().Substring(36).Trim().ToUpper();
            int intCtrUser = 0;

            try
            {
                WSOD_User.User prxySrvcUser = new WSOD_User.User();
                WSOD_User.UserQueryPage_Input inputUser = new WSOD_User.UserQueryPage_Input();
                WSOD_User.UserQueryPage_Output outputUser = new WSOD_User.UserQueryPage_Output();

                inputUser.ListOfUser = new WSOD_User.ListOfUserQuery();
                inputUser.ListOfUser.User = new WSOD_User.UserQuery();
                inputUser.ListOfUser.User.UserSignInId = new WSOD_User.queryType();
                inputUser.ListOfUser.User.Status = new WSOD_User.queryType();

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center