Answered

Delete value of attribute using saveEntity

Hello!

I want clear data from attribute "BindingReqestNumber" using saveEntity:

string

sXml = "<BizAgiWSParam>";

sXml += "<Entities idCase ='" + BizagiId + "'>";

sXml += "<RequestToServiceDesk>";

if (!String.IsNullOrEmpty(number))

sXml += "<BindingReqestNumber>" + number + "</BindingReqestNumber>";

else

sXml += "<BindingReqestNumber> </BindingReqestNumber>";

sXml += "</RequestToServiceDesk>";

sXml += "</Entities>";

sXml += "</BizAgiWSParam>";

XmlDocument xDoc1;

xDoc1 = new XmlDocument();

xDoc1.LoadXml(sXml);

BizagiEntity.EntityManagerSOASoapClient bb = new BizagiEntity.EntityManagerSOASoapClient("EntityManagerSOASoap");

XmlNode xn = bb.saveEntity(xDoc1);

This row

"sXml += "<BindingReqestNumber> </BindingReqestNumber>";"

does not work.

What I can do? please help.

Comments (3)

photo
1

Dear Sofya,

This method will not delete a value. It will disable (logical deletion) existing records. For further information: http://help.bizagi.com/bpmsuite/en/index.html?saveentityasstring.htm

Best Regards

photo
1

How can I clear data of string attribute using code?

photo
1

Dear Sofya,

You can only disable registers for parameter entities. For example, to disable a city with code=3:

saveentity_image002

Regards