David Hargis [MSFT]
Guest
|
Posted:
Thu Oct 21, 2004 12:55 am Post subject:
RE: Exporting a Profile |
|
|
You could do this a couple of ways. If this is an off-line task, you can
just use Commerce Server Manager to export the Profile Catalog schema, then
pull out the definition that you need. If you need to do this
programatically, you can use the biz data admin object to get only the
specific profile definition that you need. Here's an example of how to get
the UserObject definition xml through C#:
--------------------
string emptyString = "";
string connStr = "your connection string here"
string profileDefinition = "Profile Definitions.UserObject";
BusinessDataAdminFreeThreaded bdao = new BusinessDataAdminFreeThreaded();
bdao.Connect(ref connStr, ref emptyString, ref emptyString);
MSXMLLib.DOMDocument profileDefXml = bdao.GetProfile(ref profileDefinition,
"");
Console.WriteLine(profileDefXml.xml);
// Cleanup
Marshal.ReleaseComObject(profileDefXml);
bdao.Dispose();
--------------------
Hope this helps,
David
--------------------
From: "Dan B" <db@no.email.com>
Subject: Exporting a Profile
Date: Tue, 19 Oct 2004 14:22:49 +0800
Lines: 8
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <erPf2OatEHA.1272@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: mpcfw1001.accenture.com 170.252.160.1
Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12
.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.commerceserver.general:15001
X-Tomcat-NG: microsoft.public.commerceserver.general
Hi All,
Is there a way for me to export an specific profile definition? If so, how
do I do this?
TIA
This posting is provided "AS IS" with no warranties, and confers no
rights.
EBusiness Server Team |
|