Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error creating dynamic entity

6 views
Skip to first unread message

WT

unread,
Mar 5, 2006, 10:09:44 AM3/5/06
to
Hi,
I get the following error trying to create a custom entity with dynamic
entity call
<code>0x80040220</code>\n<description>The user does not hold the necessary
privileges.</description>

The user has administrator role, so i thing the error code is incorrect,
here is my code:
DynamicEntity dEntity = new DynamicEntity();
// Set the name of the entity type.
dEntity.Name = Name;
// Set the properties from the dictionnary
dEntity.Properties = new Property[dicProperty.Count];
int i = 0;
foreach( KeyValuePair<string, string> kvp in dicProperty )
{
StringProperty s = new StringProperty();
s.Name = kvp.Key;
s.Value = kvp.Value;
dEntity.Properties[i++] = s;
}
// Create the target.
TargetCreateDynamic targetCreate = new TargetCreateDynamic();
targetCreate.Entity = dEntity;
// Create the request object.
CreateRequest create = new CreateRequest();
// Set the properties of the request object.
create.Target = targetCreate;
// Execute the request
CreateResponse created = (CreateResponse) wrapper.Execute(create);

Is this correct ? where is my error?

Thanks

CS


Jeffry van de Vuurst

unread,
Mar 5, 2006, 4:56:31 PM3/5/06
to
Is your administrator user by any chance a "restricted access mode" user? I
think it is by default. That way you can access things like settings and
customizations, but you don't have access to the other parts of the system.
You can check it on the systemuser form.

HTH,

--
Jeffry van de Vuurst
CWR Mobility
www.cwrmobility.com
--
"WT" <W...@newsgroups.nospam> wrote in message
news:%23BxnabG...@TK2MSFTNGP11.phx.gbl...

WT

unread,
Mar 6, 2006, 2:51:18 AM3/6/06
to
Hello Jeffry,
Yes you were right.
Where is this functionnality documented? anyway thanks, I restart with my
code from the GC.
CS
"Jeffry van de Vuurst" <re...@to.newsgroup> a écrit dans le message de news:
utR1A$JQGHA...@TK2MSFTNGP12.phx.gbl...

Jeffry van de Vuurst

unread,
Mar 6, 2006, 3:58:53 AM3/6/06
to
From the SDK:
Licenses
A license is required when installing Microsoft CRM. It specifies how many
users can be enabled. If a user is disabled, the license for that user is
released and can be used by another user. In addition, there is a new type
of license called an Administrator License that corresponds to the
systemuser.setupuser field. In the Web application it is called Restricted
Access Mode. The Microsoft CRM Server Setup program assigns this type of
license to the installation user account. This mode allows Microsoft CRM
Server administrative privileges only, with no access to the Sales, Service,
and Marketing functions, and does not use up one of the available client
licenses.

--
Jeffry van de Vuurst
CWR Mobility
www.cwrmobility.com
--
"WT" <W...@newsgroups.nospam> wrote in message

news:efYKELPQ...@TK2MSFTNGP09.phx.gbl...

0 new messages