SharepointOnline
7 TopicsUpdating Editor field on SharePoint Online using the CSOM with App Only Auth
I have the following issue. I work with CSOM and I want to update the Author and Editor field on a List Item object. The actual problem is that the Editor is not updated and the value is set to the SharePoint App user. The problem occurs after using the App Only Authentication. The following method is used to update Author, Editor, Creation Date and Modified Date. List<SP.ListItemFormUpdateValue> values = new List<SP.ListItemFormUpdateValue>(); foreach (ItemProperty property in properties) { property.AddPropertyToUpdateList(ctx, item, info, values); } IList<SP.ListItemFormUpdateValue> results = item.ValidateUpdateListItem(values, true, string.Empty); ctx.ExecuteQuery(); info.Log("<--// Called \'ValidateUpdateListItem\'. //-->"); // check for API-failures. CheckErrors(results); Do you have any ideas why this is not working for Editor but for Author-it works? I also tried to use the Update method to edit the Author and Editor, but this is also not working for the Author field. User user = service.Ctx.Web.EnsureUser("email address removed for privacy reasons"); ctx.Load(user); ctx.ExecuteQuery(); FieldUserValue userValue = new FieldUserValue(); userValue.LookupId =user.Id; item["Editor"] = userValue; item["Author"] = userValue; item.Update(); ctx.ExecuteQuery();4.2KViews0likes3CommentsHow to resolve e.clvp.Init is not a function error from SharePoint list view?
I have a list view showing below error message whenever I am opening list view. When I refresh the page, the list view will start working again. Any thoughts why this is happening? Any thoughts on e.clvp function? I tried to search on the web, unable to find any content on it.Solved2.1KViews0likes1CommentChange the look Theme is not working with communication site
Hello Team We added custom theme in my tenant. Created a new communication site and tried to change the theme of communication site. When i clicked on the Theme button. It will not working as expected. Attached a image file in attchement Does anyone face the same issue? Thanks, Dipen Shah1.8KViews1like4CommentsRelink,Relink ALL, and MERGE option is missing under FILES within FORMS Library
I was trying to relink some records within a forms library after migrating to new site and all 3 options RELINK, RELINK ALL and MERGE options were there. later i found those missing and not sure how do i put it back. can someone please assist. The default RELINK VIEW is missing.1.4KViews0likes0CommentsAdd-PnPListItem return value
I have a question about the PowerShell command "Add-PnPListItem" to create a list item in SharePointOnline. Does the "Add-PnPListItem" command create a task for the list item? Or is it a command to actually create the list item? In the past, when I used the "New-Team" PowerShell command to create a Teams team, it terminated normally without any error, but the team I created was not created. When I contacted Microsoft support, they told me that "New-Team" only creates the task to create the team, and if the task to create the team is created successfully, "New-Team" does not return an error message whether the team is actually created or not. If the task to create the team is successfully created, the error message whether the team is actually created on the Teams side will not be returned by "New-Team". I would like to confirm whether the fact that the "Add-PnPListItem" command completes without generating an error is a sign that the item has been created on the SharePointOnline side. ================================= ■Japanese SharePointOnlineにリストアイテムを作成するPowerShellコマンド「Add-PnPListItem」について質問がございます。 「Add-PnPListItem」コマンドはリストアイテムのタスクを作成するコマンドでしょうか。それとも、リストアイテムを実際に作成するコマンドでしょうか。 以前、Teamsのチームを作成するPowerShellコマンド「New-Team」を利用していた際、 「New-Team」実行時にエラーが発生せずに正常終了しましたが、作成したチームが作成されていないことがありました。 そこでMicrosoftのサポートで問い合わせた所、「New-Team」はチームを作成するためのタスクを作成する処理までしか行っておらず、チームを作成するタスクが正常に作成されれば、Teams側で実際にチームが作成されたかどうかのエラーメッセージは「New-Team」では返さないというご回答を頂きました。 「Add-PnPListItem」コマンドでエラーが発生せずに完了したことを、SharePointOnline側でアイテムが作成されていると考えて問題ないかを確認させていただきたいです。 =================================1.4KViews0likes0Comments