Create new Attribute XX1 with type document
Add one more new attribute to the Message #ATTACHMENTS
Default value Attribute XX1
While creation/running the workflow add the atribute value as below:
wf_engine.setItemAttrText(itemtype =>itemtype,
itemkey =>itemkey,
aname =>'XXASS_ATTACH',
avalue=>'FND:entity=XXASSET_DISPOSAL'||'&'||'pk1name=DISPOSAL_ID'||'&'||'pk1value='||crec.header_id
) ;
The value for 'entity' can be obtained from DATA_OBJECT_CODE in FND_DOCUMENT_ENTITIES.
The value for 'pk1name' can be obtained from PK1_COLUMN in FND_DOCUMENT_ENTITIES.
The value for 'pk1value' can be obtained from PK1_VALUE in FND_ATTACHED_DOCUMENTS.
No comments:
Post a Comment