Skip to main content


 

Symptoms


Our end users would like to know if there is a way to save last selected person when they submit a New item? For example, I created a K2 smart form for our legal secretaries to send email to their attorneys and coverage team members when they are taking a day off. On the New PTO form, I have two people-picker columns, and we would like to have the attorney and coverage team associated with this user to populate the picker automatically.
 

Diagnoses


They were using SharePoint User columns to bring in these users. This caused a little bit of trouble as the Current User system value does not translate to SharePoint very well.

 

Resolution

We were able to resolve the issue with the following workaround. Do all of this in the When the View Executed Initialize rule

#1. Call the SharePoint User Get Users method and pass in the Current User Email field. This gives us the ID for the SP user. Place this in a parameter.
#2. Call the SharePoint List smartobject and pass in the User ID found above.
#3. Return the correct values to the Pickers on the view. This resolved the issue.




 
Be the first to reply!

Reply