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)?
Related Questions in TEXT
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- How to increase quality of mathjax output?
- How to appropriately handle newlines and the escaping of them?
- How to store data with lots of subdata but keep easy and simple access in python
- Can I make this kind of radio button?
- I am findind it dificult to create a box containing text
- Replacing Text using Javascript
- How to set text inside a div using JavaScript and CSS
- How to get new text input after entering a password in a tab?
- How can I get my hero section to look like this?
- Find text and numbers Formatted: "Case: BE########" and format them, regardless of the number
- Auto style text in flutter
- Text analytics and Insights
- Combine an audio and a text file as one single file
- How to align side text and table horizontally in R-markdown
Related Questions in SHAREPOINT-2010
- how to empty the recycle bin in SharePoint using PowerShell?
- Splitting Child forest from Main forest will impact SharePoint 2013 or 2016 On-premises environment?
- SharePoint Upload Files To Document Library Using Rest API
- Choice radio buttons not updating the sharepoint list
- Is there any option to get this issue resolved as I can only think of OR statement in Edit conditional Formula on sharepoint?
- What is RoleAssignment, RoleDefinition, RoleBinding in Sharepoint On-premise? How to remove a user from the permission list at site level?
- Workflow Error Occurred in SharePoint site
- How to visualize "list progress" in Sharepoint/Teams
- QuickSight Paginated Report Publish to Email Endpoints
- SharePoint CAML Query to Filter Data By Date
- Sharepoint workflow verification
- Way to find modern site is public or private using CSOM
- sharepoint jquery for sum of two column
- Create a flow to move all documents from recycle bin to another library
- How to dowload many files or folders from sharepoint
Related Questions in SPUSERFIELD
- Sharepoint SPFx spuser getting addition fields
- sharepoint 2013 user field value types?
- SharePoint CSOM: How to update person or group field using ValidateUpdateListItem?
- How to insert 'Person or Group' field in list using VS2013?
- Convert text to UserField in SharePoint2010
- Updating User field in SharePoint
- Sharepoint SPUserField
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?
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)
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