mercredi 28 janvier 2015

Document Migration: Is it possible to update Major Version document metadata fields, Author, Editor, Created and Modified



I have a library where version is enabled, both for Major and Minor versions. And I am importing documents to this library that has a lot of metadata I need to set including the internal fields Author, Editor, Created and Modified. It is working fine for updating documents that are minor version, I use the SPListItem.UpdateOverwriteVersion() after settings the Author, Editor, created and Modified fields after i have checked-in the document with a minor version. And this works fine.


My problem is this approach does not work for Major version documents, then Modified by is set to the account I am currently using to import the documents. If I try to run the SPListItem.UpdateOverwriteVersion() command a new minor version is created after the major version.


Is there anyway to update Major version documents in a library to set the Author, Editor, Created and Modified fields without creating a new minor version?


Edit: Found the solution that works and it is below.






run a workflow when a new item is added



we require a workflow which should run when a new item is added to the form library(infopath) and should update the value of a field "title" with the filename(eg:111.xml).


Please let us know, how we can accomplish it. I am authorized to use SharePoint designer tool. But not sure,how i will...






How to select parent list whole data with child list data. CHild list containing parent lookup field



I am trying to get data from chlid list which contains parent lookup filed.Also to get parent list data with child data by using join but got nothing can anyone provide me way how to do this






People or Group Field can not Search Users



Right now, I'm developing a company site with Sharepoint 2010

I have a people/group field on my list. When I try to search a person by their first name or last name, It gave me no result as follows

enter image description here


But when I typed username and clicked check button, people/group field accepted it and as result displayed his full name enter image description here

Is it a bug on Sharepoint 2010? If there anyone who ever found this problem, please share me your experinence or solutions. Thank you






How to use result obtained from clientContext.executeQueryAsync



i have to use result obtained from clientContext.executeQueryAsync for condition in code.But, now i face problem that clientContext.executeQueryAsync result not obtained when needed.






Generate automatically SSRS reports via SharePoint Workflow



I have developed SSRS reports (.rdl) and I want that when a user subscribes to a report, this one will be generated by a workflow periodically, how can i do that on sharepoint 2010 ?






Enable Cross-Domain Profile Photos in SharePoint Online



Has anyone found a way to display user photos in SharePoint from a search web part on a site without the images breaking when the authentication period to [tenant]-my.sharepoint.com times out?


For example, I have a publishing site at [tenant].sharepoint.com and on the home page we show all new employees based on the Hire Date property in their profile. The pictures come back but don't load because the image source url is for [tenant]-my.sharepoint.com. If you look at the network traffic it's trying to redirect them to re-authenticate against the "my site." If the users click on a profile it takes them to the auth page and then redirects them to the profile (without prompting for login info). Now that they've recently authenticated against the "my site" the pictures on the original homepage will display.


I understand the security reasons for this; however in on-prem implementations there's a "CrossDomainPhotosEnabled" web application property, but there's no such thing for SharePoint Online.


Has anyone gotten this scenario to work? Maybe some clever workaround I'm not considering?