I want to get values of fields of schema in sdl tridion using core services Camn anyone help me out of this?
Asked
Active
Viewed 1,279 times
-2
-
Please see your other question for an answer and then close this one. http://stackoverflow.com/questions/10443439/how-to-set-content-to-a-component-without-loading-xml-in-sdl-tridion-using-core – Frank van Puffelen May 04 '12 at 14:18
-
Considering Aquarius24's follow-up comments, it does seem as though this question is a duplicate of the one referenced by Puf. @Aquarius24 - isn't that right? The only difference is get vs. set. As it turns out, there seems to be better support for get than set, but the answer in both cases is that you shouldn't be trying so hard to avoid XML. – Dominic Cronin May 05 '12 at 07:40
1 Answers
1
Could you please clarify what you meant my Schema Field Value? To Get the Schema Fields list you can use core service ReadSchemaFields method.
SchemaFieldsData schemaFieldsData = _coreServiceClient.ReadSchemaFields(schemaId, false, null);
ItemFieldDefinitionData firstField = schemaFieldsData.Fields.First<ItemFieldDefinitionData>();
var fieldName = firstField.Name;

Bappi
- 918
- 1
- 5
- 9
-
@ Bappi .. thanks for concern I am creating component using core service, so i want to assign data to its fields without using xml. How can be achieve it? any help? – Aquarius24 May 04 '12 at 10:01
-
You can't. But I think you already posted that same question and I just answered it. – Frank van Puffelen May 04 '12 at 14:18
-
@ puf ya thanks i got it. that was really useful for me thanks a lot once again – Aquarius24 May 06 '12 at 17:36