Updating attributes in bizdoc

Hi,
I have a problem in updating a bizdoc with some custom attributes.
Situation:

I will send an EDI 820, in response to that, I will ge back an EDI 824.
I need to update some predefined custom attributes in 820 bizdoc with the values extracted from 824. (while processing the inbound 824, I need to call the related 820)

What I did:

wm.tn.query:createDocumentquery
wm.tn.query: docuumetquery
wm.tn.doc: view (this step is causing problem)

Erros:

wm.tn.doc:view— “internalId is required”
But I don’t know how to extract the internal ID?

Any suggetsion

Thanks
Kris

Step through your service and note the results returned from the documentQuery call. I can’t remember the field name, but the internal ID is returned in the results. Pass that to the view call and it should work.

Kris,
After the ‘wm.tn.query: docuumetquery’ step you have a document list in the pipeline - ‘results’
You can get the internal id by referncing - %results/DocID%

Regards
Shantanu

Kris,

You will have the documentQuery %results/DocumentId" step thru and check the pipeline (this is a doclist so map the required index to extract docid and map the same to
tn.doc:view (InternalId) input.

HTH,
RMG

Thanks Rob, Shantanu and RMG.

The mistake I did:

in create document querry call, I didn’t pass the internal sender and receiver ids. Thats the reason I didn’t get any results, so as result count as 0.

Thanks
Kris