Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Create a Calculated field in Powershell that has embedded double quotes

$
0
0

Hi

I have a requirement that I am not quite sure is even possible in the context of Site Column

I am getting an error - maybe though lack of embedded quotes but also I am wondering if this should be possible since Created is an OOTB column even if it is not currently used yet.

$formula = 'TEXT(Created,mmYYYY)'
            $calcualtedField = $web.Fields.Add($siteColumn.DisplayName , "Calculated" , $false)

   $spField.Formula = $formula

   $spFeld.Update()

Does this look correct or not


Freelance consultant




Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>