cancel
Showing results for 
Search instead for 
Did you mean: 

How to update description

Former Member
0 Kudos

hey experts,

This is very basic.

I want to update the description of a resource.

I can get the description by the following line

String desc = aResource.getDescription();

String newDesc = "new description";

Now how do I update the resource with this new description?

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try following snippet.

IPropertyName ipropDesc = new PropertyName "http://sapportals.com/xmlns/cm","description");

IProperty propDesc = new Property(ipropDesc,newDesc);

res.setProperty(propDesc);

reward points for answer if helpful

Former Member
0 Kudos

Mehul,

that was helpful.

thx

Answers (0)