SharepointOnline
14 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.2KViews0likes3CommentsSet-PnPUserProfileProperty with Application Permission in Azure Function
When using Set-PnPUserProfileProperty in Azure Function with Power Shell and the permissions has been defined using the Application Permission. Once connected to the admin site URL using client id, tenant and cert and try to update the User Profile Property, it throws the below error Access denied. You do not have permission to perform this action or access this resource. Attached the screenshot for the reference Below are the permissions given for the application in Azure API Permissions Hope someone already have a solution!3.9KViews1like3CommentsHow 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.1KViews0likes1CommentSharePoint Online Question - Approval Question
Hi, While trouble shooting my document control system on SharePoint I discovered an obstacle and was wondering if anyone knows a solution. I am using a document library in SharePoint online, combined with Power Automate to create a document control system with required approval flow. I have a document library "A" that triggers the power automate flow every time a document is uploaded and checked in. With the approval required setting checked, the document enters in draft mode until checked in when it becomes pending. Then when approved or rejected, becomes rejected/approved accordingly. I have document library "B" that is not part of the document control system at all, its just a document library that we use to store random files. We discovered today that if you upload a document into library "B" and use the "move to" function to move the document to library "A", the document is approved by default upon being moved to library "A". This is obviously a gap because we need the document to be initially in draft mode, regardless of if it got moved or the user uses the drag and drop method. Is there a way to force the documents into draft mode regardless of if it got moved from a different library or not? Thanks1.3KViews0likes3CommentsGroup by view not showing all groups
Hello, I have a document library with multiple tags. One of the fields is a dropdown with 3 items. When I do a 'group by' using the dropdown field I can only see groups for 2 items. The 3rd one is just invisible. I have documents tagged to all three options. So all the 3 tags are in use. When I ungroup them they are all visible. Any help will be appreciated.8.1KViews0likes2CommentsSharePoint custom theme toggles to a default Blue after a published site page refresh.
I have created a SharePoint subsite and applied a custom theme to it. The page looks good until I publish it. After it is published, once I refresh the page, it quickly toggles to a default blue theme. The theme was created using the custom PowerShell script as below, $themepalette = @{ "themePrimary" = "#e81a2b"; "themeLighterAlt" = "#fef5f6"; "themeLighter" = "#fbd8db"; "themeLight" = "#f8b6bb"; "themeTertiary" = "#f1707b"; "themeSecondary" = "#eb3342"; "themeDarkAlt" = "#d11726"; "themeDark" = "#b01320"; "themeDarker" = "#820e18"; "neutralLighterAlt" = "#f8f8f8"; "neutralLighter" = "#f4f4f4"; "neutralLight" = "#eaeaea"; "neutralQuaternaryAlt" = "#dadada"; "neutralQuaternary" = "#d0d0d0"; "neutralTertiaryAlt" = "#c8c8c8"; "neutralTertiary" = "#595959"; "neutralSecondary" = "#373737"; "neutralPrimaryAlt" = "#2f2f2f"; "neutralPrimary" = "#000000"; "neutralDark" = "#151515"; "black" = "#0b0b0b"; "white" = "#ffffff"; } Add-SPOTheme -Identity "ThemeName" -Palette $themepalette -IsInverted $false846Views0likes0CommentsAdd-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.4KViews0likes0CommentsRelink,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.4KViews0likes0Comments