We have a requirement to create identical sub-objects under idea and project then copy over the sub-object records under idea to the one under project during idea to project conversion.
The ootb idea to project conversion does not copy over sub-object records so my thought was to use the "Convert Object" action which requires a mapping entry to be created in odf_object_mapping per article
https://knowledge.broadcom.com/external/article?articleId=42155
To test this, I tried the following in 15.8.1:
- Created a subobject to idea srini_test_idea_sub with just one custom string field "dummy"
- Created a subobject to project srini_test_prj_sub with just one custom string field "dummy"
- Xogged in the mapping to link the two objects
- Created a one-step process to use the "Convert Object" action, using the mapping created above
- Granted all the rights needed for the object & processes
- Created test idea sub-object instance on a converted idea (so the destination project exists)
- Went to the processes tab of the sub-object instance on idea and started the one-step process that I built above
- Expected: The process completes successfully transferring the sub-object instance
- Actual: Errors out because odf_parent_id field is null during the insert of the project sub-object record
Has anyone tried this before? There is a field called PARENT_MAPPING_CODE in odf_object_mapping which probably needs to be pointed to this, likely. The error message looks encouraging as the SQL is doing exactly what I want it to do ... it is inserting a record into the project side sub-object. Only missing info is the odf_parent_id of the record which it should somehow find automatically. I've attached the xog files for the two custom objects, the xog for mapping and the error message in case anyone wants to take a look. Of course, if this doesn't work, I can simply create a custom gel script to copy the sub-object records from idea to project using custom object instance xog. The convert object / object mapping approach is more of a technical curiosity since this doesn't seem to a documented feature other than in this technical article.
Other option is to create an investment sub-object and use it under both idea and project. But that will not provide any additional advantages during conversion and it may not allow the use of object mapping at all as both source and destination objects will be the same. Right?
Thanks!