Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Monday, November 25, 2024
slxdeveloper.com
Home
Search
Contact us
About slxdeveloper
Syndication
Community
Forums
(NEW!)
Newsletter Archive
Members
Your Profile
Submit Article
General
Administration
(6)
OLE DB Provider
Miscellaneous
(2)
Architect
VBScript
(9)
ActiveX Controls
(6)
How To's
(14)
.NET Extensions
(3)
External
OLE DB Provider
(12)
SLAPI (SlgxApi.dll)
SalesLogix COM
(1)
Web
ASP/ASP.NET
(2)
Web Services
Web Client
Downloads
Samples
(17)
Documentation
(7)
Utilities
(18)
Resources
SalesLogix
(3)
Programming
(1)
11/25/2024 8:22:56 PM
slxdeveloper.com Community Forums
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
External Development Forums - General External Development
Forum to discuss general external development topic (related or not to SalesLogix development). View the
code of conduct
for posting guidelines.
Forums RSS Feed
Back to Forum List
|
Back to General External Development
|
New Thread
View:
Dynamic
Flat
Tree
Search:
Author
Thread: Create New Contact via SData
Kai Schaffrath
Posts: 13
Create New Contact via SData
Posted: 09 Jan 10 4:15 PM
Hi,
I am trying to create a new contact via SData - for this I need a Address Record.
For creating an Address Record I need an EntityID - but the EntityID of the new Contact
I get after creating the Contact and without the AddressID the contact couldnt be created.
It goes around in circles ....
Can somebody provide me a running example or some ideas?
Thanks in advance.
[
Reply
][
Quote
]
Kai Schaffrath
Posts: 13
Re: Create New Contact via SData
Posted: 10 Jan 10 6:27 AM
The following error comes up:
Exception caught during the processing of a message
Verb: POST
Uri:
http://
:81/sdata/slx/dynamic/-/contacts
Original Message: An exception occurred executing the dynamic method Address.OnBeforeInsert.
Inner Exception Message: The address Description must be defined
Stack Trace: bei Sage.Platform.DynamicMethod.DynamicMethodLibrary.Execute(String methodName, Object[] args)
For the newcontact the address is set:
newcontact.Element(slx + "Address").SetAttributeValue(sdata + "key", "")
newcontact.Element(slx + "Address").SetAttributeValue(sdata + "uri", "http://...:81/sdata/slx/dynamic/-/addresses('')")
newcontact.Element(slx + "Address").SetAttributeValue(sdata + "uuid", "00000000-0000-0000-0000-000000000000")
Any idea to solve this prolem?
THANKS in advance Susanne
[
Reply
][
Quote
]
Phil Parkin
Posts: 819
Re: Create New Contact via SData
Posted: 10 Jan 10 8:58 AM
As per the error message, you could try adding a description ...
[
Reply
][
Quote
]
Kai Schaffrath
Posts: 13
Re: Create New Contact via SData
Posted: 10 Jan 10 10:32 AM
Hi Phil,
can you let me know how to do this, please?
I tried this - but get then the following errormessage:
Exception caught during the processing of a message
Verb: POST
Uri:
http://192.168.6.191
:81/sdata/slx/dynamic/-/contacts
Original Message: Ungültiger Index 25 für OleDbParameterCollection mit Count=25.
I think this error is caused by the empty address id.
A6UJ9A000097
ADMIN
um:
2010-01-10T14:08:15+00:00
x
false
email@email.de
testF
testL
2010-01-10T14:08:15+00:00
SYST00000001
Active
,
ADMIN
Office
false
false
ADMIN
Thanks Susanne
[
Reply
][
Quote
]
Phil Parkin
Posts: 819
Re: Create New Contact via SData
Posted: 10 Jan 10 10:38 AM
I'm sorry - not used sData yet, so cannot help further. I just read your code & the error message & they were just about understandable enough for me to comment. Good luck.
[
Reply
][
Quote
]
Page 1 of 1
You can subscribe to receive a daily forum digest in your
user profile
. View the site
code of conduct
for posting guidelines.
Forum RSS Feed
-
Subscribe to the forum RSS feed to keep on top of the latest forum activity!
slxdeveloper.com is brought to you courtesy of
Ryan Farley
&
Customer FX Corporation
.
This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.
code of conduct
|
page cache (param): 11/25/2024 8:41:51 PM