Exporting a Profile
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Exporting a Profile

 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server
Author Message
Dan B
Guest





Posted: Tue Oct 19, 2004 11:22 am    Post subject: Exporting a Profile Reply with quote

Hi All,

Is there a way for me to export an specific profile definition? If so, how
do I do this?

TIA
Back to top
David Hargis [MSFT]
Guest





Posted: Thu Oct 21, 2004 12:55 am    Post subject: RE: Exporting a Profile Reply with quote

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
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB