Search code examples
sharepointsharepoint-2010ms-officeinfopathinfopath2010

How to send username as a Parameter in Microsoft Infopath?


Hi i'm designing an infopath form which uses a web service and load some combo boxes, this service needs the username of the user as parameter.

I need the form to load data in formload method

How do i set the username as the default parameter in infopath?


Solution

  • InfoPath has a built-in function called userName() you can use to get the currently logged in user. You can use this function in rules such as Form Load, etc.