cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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('...MyTextCollectionField"

}

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

Best regards.

Alexandre.

Answers (1)

Answers (1)

JayantSaini
Active Participant
0 Kudos

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