Hi Chuck,
have a look at the concept of PendingActions (https://www.ibm.com/docs/en/filenet-p8-platform/5.5.x?topic=development-getting-started#gs_concepts__gs_instantiation). Multiple operations can be committed with one save operation.
- createInstance
- modifyProperties (only here attributes can be set with "settable only on create")
- save // commit with createInstance permissions
vs.
- createInstance
- save // first commit with createInstance permissions
- modifyProperties
- save // second commit with modifyProperties permissions
(@Nanda Pilaka: I don't think this is about batch updating - maybe somewhat related because of the transaction block).
regards
Christoph
------------------------------
Christoph Sünderkamp
------------------------------
Original Message:
Sent: Mon January 29, 2024 04:32 PM
From: Chuck Hales
Subject: We are looking for a .Net code sample that does the checking during the create action.
My developer is new to coding with FileNet Content Manager. He's found code samples that first create the document and then checks the document in. Our security only allows for the ingestion user to have create rights on the class and does not have "modify all properties" on the default instance of the document being created. We tested this user with IBM Content Navigator, and it doesn't have an issue. It appears to set the check in properties at the same time it creates the document.
------------------------------
Chuck Hales
------------------------------