Skip to Content

Exposing TextCollection field in Webservice WSDL possible?

Hi Gurus,

1) I have declared the following fields in Custom BO.

import AP.Common.GDT as apCommonGDT;
businessobject TestBO {

[AlternativeKey]  element ID : ID;
[Label("Section")]			element Section : LANGUAGEINDEPENDENT_EXTENDED_Text;
[Label("First Level")]		element FirstLevel : LANGUAGEINDEPENDENT_EXTENDED_Text;
[Label("Second Level")]		element SecondLevel	: LANGUAGEINDEPENDENT_EXTENDED_Text;

[Label("Information")]		element Information	: LANGUAGEINDEPENDENT_EXTENDED_Text;
[Label("Information 2")]	element Information2: LANGUAGEINDEPENDENT_EXTENDED_Text;

[DependentObject(TextCollection)] [LanguageIndependent] node TextCollection;

2) Right Click the BO and Create Service Integration -> Type = "WebService"

3) Selected the fields (including the TextCollection)

4) And, created an QueryByElements and Read operation in the WebService. Both of them does not return the TextCollection dependentobject field.

5) Since i need to store more than 255 characters in the field and In order to overcome this limitation (of not able to expose Textcollection field - not sure it is still a limitation or there is a way to expose a textcollection), I have to write logic in BeforeSave to split the TextCollection into two fields "Information" and "Information2" each of 255 chars.


<soap:Envelope xmlns:soap="" xmlns:glob="">



<Section>My Team</Section>
<Information>Please provide the information below to help us to progress your enquiry:

Please attach any document(s) that will further support your enquiry.

If you are filling this out on behalf of someone</Information>
<Information2>please include their name and personnel number.</Information2>

Note - Response does not seem to be having the TextCollection field. Rather only the "Information" and "Information2" fields - which are of 255 char limit each.

Appreciate your early response and help with this issue.


Sampath Kumar N

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Feb 07, 2018 at 10:04 AM

    Hello Samapth,

    If you know that roughly 500 chars are enough for your business case and you are not disturbed by the name you can also use the GDT

    This data type can carry up to 765 chars.

    . Horst

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 24, 2018 at 01:24 AM

    Hello Samapth,

    You can check my blog Expose TextCollection data belonging to a Custom BO via OData service.

    Best regards,


    Add comment
    10|10000 characters needed characters exceeded