6/19/2026 4:28:38 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!
Forum to discuss general external development topic (related or not to SalesLogix development). View the code of conduct for posting guidelines.
|
|
|
|
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.
|
|
|
|
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 |
|
|
| |
|
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 |
|
|
|
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. |
|
|
|
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!
|
|
|
|
|
|
|
|