Update metadata of MOSS document library item using powershell - powershell

Is it possible to update metadata of an item in SharePoint 2007 document library using powershell?
I'd like to execute a CAML query and then change && update every item in the results list. My goal is to write a single throwaway script instead of writing a console app in VS. Can anyone point me towards a way of doing this?
Thanks,
josko

I'm normally able to do anything in sharepoint 2010 just using Powershell and:
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Sharepoint")
But never tried in Sharepoint 2007. However I think you won't have any problem, since it seems Sharepoint Services 3.0 supports the assembly as well, along with SPQuery

Yes you can update document library item using powershell.
please refer site :
http://www.powershell.nu/2009/09/08/moss-2007-script-collection/
Refer these examples given here.

Related

Set "Configure Search Navigation" in search setting in SharePoint Online using PowerShell

I want to mark checkbox to true for use the same search navigation links as my parent using PowerShell script as I have 100+ Subsites. I tries to some scripts but they did not work so it would be great if you can help me on this.
Thank you.
Output :
I have found that some server-side solutions are not applicable to SharePoint Online. Maybe you can open a service request in your SharePoint Online admin center to get the exact information.

word add-in using OfficeJs

We already developed Excel add-in using officejs with RESTful api with Batching in custom Functions.
And we wanted to achieve same in Word add-in hence kindly share example using word add-in with RESTful api.
As I understand it, you have a web API (REST architecture) and you have successfully made calls to it from an Excel custom function. Now you want to make calls to a web API from a task pane Word add-in. You should be able to do this exactly the same way that you do in the custom function. In fact, to start with, you should use the exact calling code and get the exact same data. The difference is only in the UI. You will probably want the calling code triggered by an event handler for a button in the task pane.
As per my knowledge, you need word manifest.xml file then all your business logic you can write using differences your addin by running inside excel or word
So officejs provide Host info to check running platform
I guess it will help

is it possible to link a field to a property of a control in formregions

I am developing an add-in for outlook 2013/2016.
Thus far I've been using vbscript for my forms.
However, needing not to have code exposed to anyone
who knows how to hit'design this form' and for easier
upgrading I was considering to switch to formregions.
My problem is how to assign the properties of a control
created in c# form region in the way that is done in outlook forms
(that are meant to contain form regions)
But I cannot find any help and references for that purpose
Does anyone know of a workaround?or some documentation, maybe?
PS:Importing the form region results in error:
'The installation Path for outlook 15 cannot be determined'
(I am running vsto 15 in office 16 64-bit)
thnx for all the effort!!!
the conversation got quite long
and i am gratefull.
i have taken your answers into
account but i could not complete
the puzzle starting from all
of the points you made.
Instead i will answer this question
with a complete tutorial i found.
Actually it dates back to office 2007
(so i avoided it initially because,
you know, technologies change
but i tried on 2016 and verified it works!!!
the link is at :
http://www.informit.com/articles/article.aspx?p=1327185
You can persist any property on an item using PropertyAccessor.GetProperty/SetProperty or the UserProperties collection.

Use Followed work Item in a new Query TFS 2017

I want to create a query with my followed works items in TFS 2017, but I didn't find the field name for the followed state.
I want to create that query in order to add a new widget in home dashboard.
Is it possible to make a query with your followed items in TFS2017?
No, there isn’t the feature to create a query with followed work items in TFS or VSTS and pin to dashboard. You just can check followed work items from Work>Queries.
I submit a user voice here (Query for followed workitem and pin to dashboard), you can vote it.
You can achieve this scenario by creating a custom Followed work items query (System.ID In #Follows) and saving it to Shared Queries. Then, simply pin the query to your dashboard as a Query Results Widget and anyone who views it will see their followed work items (similarly you can pin an Assigned to me query using the #me macro and users will see items assigned to them).
The #Follows macro has been around in VSTS for awhile and was introduced in TFS 2017. Check out our documentation on queries macros for more information.
As proposed by Lauren, in TFS 2017, you can build an ad-hoc query "ID In #follows" (Field=ID / Operator=In / Value=#follows). The results will be similar to the Default Query "Followed work items" under Work>Queries.
However, I was never able to save this query: trying to save always got me an error "TF212023: You cannot compare fields with different data types in the WHERE clause of a work item query. The error is caused by «[System.Id] in (#follows)»."
What I found out is, that the query works well in the web interface, but cannot be run nor created or edited in Visual Studio.
I did not even find a way to "follow" a workitem in VS, this seems to be available only in the web interface as well.

How to use LookupSPGroupMembers in Workflow Custom Activity (SharePoint)

I am creating a custom workflow in sharepoint designer 2013 but i have hit a snag where i cant work out a way to check to see if a user belongs to a specific user group.
This has led me to create a custom activity in Visual Studio 2012. There is a built in activity called LookupSPGroupMembers but i can for the life of me work out how to use the output.
The output is of type DyanamicValue, but I cant workout how to iterate through the value to retrieve the users.
HELP!
I found a way, this is complex to explain here, so please check in:
http://raquelalineblog.wordpress.com/2013/05/20/sharepoint-2013-lookupspgroupmembers-workflow-activity/
The result of LookupSPGroupMembers is an array or list of DynamicValues, you have to create the logic to iterate through this list and get the values of each item.