none
get current user Account id from info path 2010

    שאלה

  • can anyone please tel me how to get current user Account id from info path 2010.the other requirement is that for that user doesn't have enough permission to call the share point user service(vti_bin/SP user services) to get the login detals.there are lot of theads I see tht are use to get data like that.also keep in mind that I m using office 365 and not have central admin Rights too.
    שבת 23 יוני 2012 05:07

תשובות

  • InfoPath has built-in function called userName() that you can use. In any formula box, click on Insert Function, select the User category and then the userName() function.

    Manaz Mohideen - MCPD, MCITP, MCTS

    • סומן כתשובה על-ידי Chris GristMVP יום ראשון 24 יוני 2012 00:50
    שבת 23 יוני 2012 06:40
  • You can use the string functions to strip off the unwanted stuff. Also, your initial post stated that you wanted the account ID. If you want the display name as well, you will have to resort to using the User Profile web service, and AD web service or retrieving it via code behind.

    Manaz Mohideen - MCPD, MCITP, MCTS

    • סומן כתשובה על-ידי Chris GristMVP יום ראשון 24 יוני 2012 00:50
    שבת 23 יוני 2012 16:38

כל התגובות

  • InfoPath has built-in function called userName() that you can use. In any formula box, click on Insert Function, select the User category and then the userName() function.

    Manaz Mohideen - MCPD, MCITP, MCTS

    • סומן כתשובה על-ידי Chris GristMVP יום ראשון 24 יוני 2012 00:50
    שבת 23 יוני 2012 06:40
  • Thank a lot Manaz.anyway I found out it later,

    I think it is new feature in infopath 2010.


    • נערך על-ידי Pragiya שבת 23 יוני 2012 07:04
    • סומן כתשובה על-ידי Pragiya שבת 23 יוני 2012 07:07
    • סימון כתשובה בוטל על-ידי Pragiya שבת 23 יוני 2012 07:07
    שבת 23 יוני 2012 07:00
  • Manaz can I get user account id like this ?

    I got problem with that and I got additional stuff like this

    I  i:0#.f|membership+my email

    anyone know how to get the my sharepoint  user id from here ?

    Please help me


    • נערך על-ידי Pragiya שבת 23 יוני 2012 07:14
    • סומן כתשובה על-ידי Pragiya שבת 23 יוני 2012 09:11
    • סימון כתשובה בוטל על-ידי Pragiya שבת 23 יוני 2012 10:15
    שבת 23 יוני 2012 07:08
  • cannot get display name of the user 
    שבת 23 יוני 2012 10:12
  • You can use the string functions to strip off the unwanted stuff. Also, your initial post stated that you wanted the account ID. If you want the display name as well, you will have to resort to using the User Profile web service, and AD web service or retrieving it via code behind.

    Manaz Mohideen - MCPD, MCITP, MCTS

    • סומן כתשובה על-ידי Chris GristMVP יום ראשון 24 יוני 2012 00:50
    שבת 23 יוני 2012 16:38
  • Hi Manaz ,

    Thank you very much for the reply.But  Manaz in here I would like to use it without coding.your second option is good but there also I have limitation because from that permission level of the user cannot call to User Profile web service,

    the username() function doesn't contain the actual user name but it contain the email id.


    anyway I can assing it directly to the account id and then it ok for at the movement.but still I cannot get the user ID.

    יום ראשון 24 יוני 2012 05:48