0

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

1 Answer 1

2

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

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

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

getting-and-setting-fields Powershell

2
  • But i don't do it by C#, I do it by powershell Commented Sep 9, 2014 at 11:49
  • 1
    I edited the link Commented Sep 9, 2014 at 12:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.