Discussion:
updating userobject
(too old to reply)
Jaisabari
2006-08-25 16:42:01 UTC
Permalink
Need a help

I need to update multivalue property in userobject.
It is not updating the property with the value i am passing.

need a solution ASAP.
--
Regards
Jaisabari
David Hargis [MSFT]
2006-08-31 22:37:16 UTC
Permalink
Multivalued properties expect an object[] as the value:

Profile p = CommerceContext.Current.ProfileSystem.GetProfile(...);
p[my_multival_property].Value = new object[] {"value1", "value2"};
p.Update();

- David
--------------------
Thread-Topic: updating userobject
thread-index: AcbIZWPHXGK+DiSgRPCCFJZl6OVZqA==
X-WBNR-Posting-Host: 61.8.147.5
From: =?Utf-8?B?SmFpc2FiYXJp?= <***@discussions.microsoft.com>
Subject: updating userobject
Date: Fri, 25 Aug 2006 09:42:01 -0700
Lines: 12
Message-ID: <76E5E5C6-0BFB-451D-9766-***@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
Newsgroups: microsoft.public.commerceserver.userprofilemgt
Path: TK2MSFTNGXA01.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.commerceserver.userprofilemgt:3635
NNTP-Posting-Host: TK2MSFTNGXA01.phx.gbl 10.40.2.250
X-Tomcat-NG: microsoft.public.commerceserver.userprofilemgt

Need a help

I need to update multivalue property in userobject.
It is not updating the property with the value i am passing.

need a solution ASAP.
--
Regards
Jaisabari
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
Loading...