How to update Content and Contentype based on InstanceId

Hi All,

Can any one help me to update the content of data and contenttype ,if have InstanceId in runtime in Tranding Network.

Great help provide me piece of code.

Regards,
anil kumar ellendula

I am not sure if i understood you query correctly…

But If you are looking to add content part to a document,use this service and this needs the existing bizdoc from the pipeline…If it’s not in the pipeline use wm.tn.doc:view to retrieve the bizdoc using the document’s InternalID.

wm.tn.doc:addContentPart (Adds a new content part to a document.)


HTH,
RMG

Hi RMG,

Sorry my question,my problem is i have instanceid at runtime,i need to update TN Content Data which is already exist in TN,i donot have BIZDOC in runtime,i have only instanceId of TN.

Regards,
Anil Kumar Ellendula

No,you one can’t update/edit content which is already persisted in this case except the above mentioned scenario.

InstanceID you mean TN InternalID isn’t??

HTH,
RMg

Hi,

Yes, instanceId is the TN Internal Id.

Regards,
anil ellendula

If you want to udate the content part,use these steps:

wm.tn.doc:view(using InternalID retrieve the content/bizdoc)
wm.tn.doc:addContentPart (Adds a new content part to a document)

HTH,
RMG