Not able to get filename when removed from attachment using Event PX

Hi

When a  file is removed from attachment ,not able to retrieve filename etc. using Event PX, it is giving null.

Below is the code details:

Able to get only folder name and object version.

The attribute ids 1046 (for file name) and 3621 (for modified date) are returning null.

Have setup as PRE event px.

 

IEventDirtyTable dirtyTable = (IEventDirtyTable)currentObject.getTable();

Iterator it1 = dirtyTable.iterator();
while (it1.hasNext()) {
IEventDirtyRowUpdate row1 = (IEventDirtyRowUpdate)it1.next();
int rowAction = row1.getAction();
// EventConstants.
if (rowAction == EventConstants.DIRTY_ROW_ACTION_DELETE) {
logger.info(“Row action in if ” + rowAction);

logger.info(“name ” + row1.getReferent().getName());
logger.info(“version ” + row1.getReferent().getObjectVersion());
//below values getting null
logger.info(“file name 1” + row1.getCell(1046));
logger.info(“modified date 1” + row1.getCell(3621));

logger.info(“file name “+ row1.getReferent().getCell(1046));
logger.info(“modified date ” + row1.getReferent().getCell(3621));

 

There was a post some time back on similar issue by somebody,but no solution was mentioned in it.

It will be helpful if somebody can chip in.

Was able to get the file name from folder name.

on March 31, 2021.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.