Skip to Content

Can I use a "formatted text" field in odata service?

Hi there!

I've created a custom BO that contains a TextCollection node and, when I add it to the screen, it's possible to use it as a formatted text field. It works fine.

Internally, I know that this field maintains two values, a "Text" value and a "FormattedText" value (with html tags).

When I create an odata service for this BO, it's possible to get the "Text" value (without formatting) but I cannot get the "Formatted" value.

Is it a limitation? Am I forgetting anything?

Thanks in advance.

Alexandre.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 11, 2017 at 11:08 AM

    Hi Jayant.

    The odata service creation is exactly the same, but a new node can be added for the text collection. This new collection will have an url in the response:

    "MyTextCollectionField":{

    "__deferred":{

    "uri":"https://myXXXXX.crm.ondemand.com/sap/c4c/odata/cust/v1/MyCustomObject/MyCustomObjectRootCollection('00163E162F8C1EE786937F044DF5A7FE')/MyTextCollectionField"

    }

    If you request this then you'll be able to get the Text property.

    Best regards.

    Alexandre.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 10, 2017 at 02:19 PM

    Hi Alexandre,

    I am also trying to replicate similar scenario but I am not able to use even text field in the odata. Can you please guide me through to how to create odata for a textcollection?

    Regards,

    Jay

    Add comment
    10|10000 characters needed characters exceeded