I have been trying to create a new artifact but keeps on throwing error. The code is given below.
skCase = Case.getCurrentCase().getSleuthkitCase();
artId = skCase.addArtifactType(“TSK_WAZIRX_WAL_HISTORY”, “WAZIRX Wal History”)
artifact = file.newArtifact(artId.getTypeID())
I have tried the below code too,
blackboard = Case.getCurrentCase().getServices().getBlackboard()
artId = blackboard.getOrAddArtifactType(“TSK_WAZIRX_WAL_HISTORY”, “WAZIRX Wal History”)
artifact = file.newArtifact(artId.getTypeID())
Can anyone help me with this please.