-2

I want to get values of fields of schema in sdl tridion using core services Camn anyone help me out of this?

Aquarius24
  • 1,806
  • 6
  • 33
  • 61
  • 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 Answers1

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