Hi,
We have a custom solution to create individual QR Codes. The solution is designed in such a way to create Content fragments to enter all details and a listener is listening for a property 'lastFragmentSave' along with couple of others and then calling a service class which contains all logic to create QR Codes.
Now there is a requirement to create bulk QR codes, so planning to leverage ACS Commons Content fragment import process for this - https://adobe-consulting-services.github.io/acs-aem-commons/features/mcp-tools/cf-importer/index.htm...
I tried to use the sample sheet and model in this link above. It creates CF's, but i cannot see 'lastFragmentSave' in these bulk CF's created. Does anyone know why is it so?
I tried editing the CF created and clicked save and close, but still this property is not coming.
This is the property I am looking forward
Why does it create this OOB property when we manually create, but not while using bulk ACS Commons feature?
Is there anyway we can manipulate this in the same excel?
Have added the model zip and sample template as well here for reference.
Solved! Go to Solution.
Views
Replies
Total Likes
@P_V_Nair Yes, once the CFs are created via the CF importer , may be apply a post processing workflow that performs the edit operation and everything else from there on can follow.
@P_V_Nair , What is the ACS commons version that you are using?
Can you try this with the latest ACS commons library version. I think there was a fix for date type fields in one of the latest versions.
More info on this : https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/2712
@Harwinder-singh I am using 5.3.4 which is latest than the post you shared. The issue is lot with any of the data types, the question is regarding how can i add the last fragment OOB property for content fragments as I have a event listener to triggers some service layers based on that property.
@P_V_Nair , The reason for that is the 'lastFragmentSave' property is set on the CF only when it is edited.
when you are creating the CFs via the CF importer, you are just creating them afresh. you may have to invoke additional edit operation to enable the properties like 'lastFragmentSave' , 'jcr:versionHistory', 'jcr:predecessers' etc to be set on the CF nodes.
Hope this helps.
@Harwinder-singh That makes sense. So, first time if we do the content fragment importer, can we use the same to edit it by running the same the second time with a change? I actually tested it, but it was treated as new again. I am interested only in the lastFragmentSave, so on this case should that be programmatically be updated to the node to invoke my listener?
@P_V_Nair Yes, once the CFs are created via the CF importer , may be apply a post processing workflow that performs the edit operation and everything else from there on can follow.
Sure. Will solution it in that way. Thanks @Harwinder-singh
Views
Likes
Replies