How to convert simple text to userField in SharePoint2010 library? Idea: I uploading specific document in xml format, that contains text field in next format - domain\username (e.g. 'CSIA\ROV'). My library has a field with type UserField (Person or Group) and i want to convert domain\username to this type, that get in result user, that currently logged in sp portal (e.g. Roman Vovk). What methods can i use to solve my problem? Can i sovle this problem use sp workflows or sp designer (caml)? Or should i use some event receiver (e.g. ItemAdding)?
Convert text to UserField in SharePoint2010
1.3k Views Asked by Witcher At
1
There are 1 best solutions below
Related Questions in TEXT
- Delete the extra space after special character in all the lines of text file
- Apply gaussian filter on text
- text show and hide with button php/js
- Get text from a section of a pdf page with IcePdf
- load word file (.docx) in richtextbox
- Display a specific line in a text file - android/java
- how to change text direction to the right slide of switch in android?
- C language - Read specific data from text file
- Read text file from specific position and store in two arrays
- How to animate text
- Detect repetition in text string / copied text
- Use MATLAB's webread to login to website and extract text
- LWJGL Drawing colored text to the screen issue
- Hide part of text temporarily, show after user clicks certain element
- Reading text file in java using scanner
Related Questions in SHAREPOINT-2010
- Upload a document to a SharePoint document library (can be via Rest Api/other) using C# & also retrieve the unique id of the document
- Sharepoint alers email deletion from alerts
- Apache Reverse Proxy erases <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
- Can REST-like URLs be passed/recognized in sharepoint 2010?
- Configure SharePoint 2010 UPS with PowerShell
- How to dynamically create Sharepoint ComboBoxes?
- SharePoint 2013 Custom list field iterator not saving values for MultiLine or person columns
- Publicly available InfoPath form connecting to Access db in a restricted location
- Why does my Sharepoint WebPart deploy (nominally), but is still not available for adding to a page/form?
- Does CAML Query has a default RowLimit value?
- SharePoint CSOM
- I am getting a The type or namespace name 'listcolumns' could not be found (are you missing a using directive or an assembly reference?)
- Sharepoint 2010 CMIS Integration
- JQuery Show All Tab - Issue with on click
- jQuery UI API failing to load properly with LABjs
Related Questions in SPUSERFIELD
- How to insert 'Person or Group' field in list using VS2013?
- SharePoint CSOM: How to update person or group field using ValidateUpdateListItem?
- Updating User field in SharePoint
- sharepoint 2013 user field value types?
- Sharepoint SPFx spuser getting addition fields
- Convert text to UserField in SharePoint2010
- Sharepoint SPUserField
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I think you need to roll out some code. i.e using an event handler.
The thing is that the user field in SharePoint expects a different format than domain\user. It works on the format 145;#BobR;#11;#Sally
The first thing you need to do is to ensure that your user belongs to the site, then you can get a reference to the SPUser object that represent it and use this to add an entry to the field.
For more details: UserField.Value Property