How to save a current login user Name into sharepoint list on form submiting? - InfoPath Dev
in

InfoPath Dev

Qdabra® Active Directory Web Service

Use our Google Custom Search for best site search results.

How to save a current login user Name into sharepoint list on form submiting?

Last post 11-28-2023 04:31 PM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-27-2023 06:44 AM

    How to save a current login user Name into sharepoint list on form submiting?

     i am working on already existing app that  is not migrated to power apps.

    I have sharepoint lit with  preparedby  -single line text  and approvedby person field column

    on form submission I want to save: preparedby  and approvedby the name of the current loggedin user.

    I tried to use userName() on set fields value, but it always insert  in the format of :  i:0#.f|membership|myemail@site.com

    How can I format the userName() to give me name of the user.

    thanks in advance

     

     

  • 11-28-2023 04:31 PM In reply to

    Re: How to save a current login user Name into sharepoint list on form submiting?

    Are you using SharePoint Online by any chance? If so, you might want to promote the user name to a field and then you could use Power Automate running off the form library to set an additional person field to that claims value. We can't directly promote to a person or group from InfoPath.
    Hilary Stoupa

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.