If I tried to import from powershell to sharepoint field it adds me two 00 to the values. How to import a fields in this sequention 000,00 I have got a MS SQL view with this form 000,00 but when I import to list it shows me 00000,00, i don't know why powershell don't see the comma.

The code of powershel is:

$new["Test Field1"] = $i.TestField1
$new["Test Field2"] = $i.xTestField2

Try to use [Double]::Parse("xxx")

$item["currencyfield"] = [Double]::Parse("123.48");

You can find a complete guide about powershell and list s fields here:

getting-and-setting-fields Powershell

  • But i don't do it by C#, I do it by powershell – Grzegorz Z Sep 9 '14 at 11:49
  • 1
    I edited the link – Nk SP Sep 9 '14 at 12:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.