Issue in REST API - Retrieving object from JSON using Import mapping
0
Hello All, Here I have a requirement where I have to publish the REST API which will store the data in the database. But I am facing an issue where I have a parent object(AcionHelper) associated with multiple child object (SubAction). When I try to invoke my published API from postman I am passing the required JSON as input in body I got the parent object but reference to the child object is empty(SubAction). PFB screen shots for your reference and the JSON structure. JSON STRUCTURE: { "Subject":"Rapid", "StartDate":"2022-09-20T18:30:00.000Z", "DueDate":"2022-10-07T18:30:00.000Z", "Priority":"Medium", "Description":"<p><span style=\"color: rgb(0, 0, 0);\">Free online string to base64 encoder. Just load your string and it will automatically get converted to base64. Load a string, get base64. There are no intrusive ads, popups or nonsense, just an awesome string to base64 encoder. Created for developers by developers from</span></p>", "IsSubAction":false, "Selected":false, "ShowFileDropper2_2":false, "Edit":true, "CompletionPercentage":0, "saved":false, "Overdue":false, "minValue":0, "maxValue":100, "CommentEdit":true, "Show_progress":true, "previous_progress":0, "changedDate":"2022-09-20T04:46:12.992Z", "createdDate":"2022-09-20T04:43:18.746Z", "ActionID":100, "ActionPlanStatus":"Not_Started", "ActionType":{ "ActionType":"Benchmark", "IsSelected":false }, "Delivarabless":[ ], "Assigneess":[ { "Count":1, "Sno":0, "Account":{ "FullName":"L1", "Email":"l1@gmail.com", "IsLocalUser":true, "Permission":false } }, { "Count":1, "Sno":0, "Account":{ "FullName":"L2", "Email":"l2@gmail.com", "IsLocalUser":true, "Permission":false } } ], "Action_Owner":{ "FullName":"Initiator1", "Email":"initiator1@gmail.com", "IsLocalUser":true, "Permission":false, "ManualUser":true }, "Followerss":[ { "Count":0, "Sno":0, "Account":{ "FullName":"ManagerCxO1", "Email":"managercxo1@gmail.com", "IsLocalUser":true, "Permission":false } } ], "Documents_":[ ], "SubAction":[ { "Subject":"Rapid 1", "StartDate":"2022-09-21T18:30:00.000Z", "DueDate":"2022-09-28T18:30:00.000Z", "Priority":"Medium", "Description":"<p><span style=\"color: rgb(0, 0, 0);\">Free online string to base64 encoder. Just load your string and it will automatically get converted to base64. Load a string, get base64. There are no intrusive ads, popups or nonsense, just an awesome string to base64 encoder. Created for developers by developers from</span></p>", "IsSubAction":true, "Selected":false, "ShowFileDropper2_2":false, "Edit":false, "CompletionPercentage":0, "saved":false, "Overdue":false, "minValue":0, "maxValue":100, "CommentEdit":true, "Show_progress":true, "previous_progress":0, "ActionType":{ "IsSelected":false }, "SubAction_Deliverables":[ ], "Assigneess":[ { "Count":1, "Sno":0, "Account":{ "FullName":"Initiator", "Email":"initiator@gmail.com", "IsLocalUser":true, "Permission":false } }, { "Count":1, "Sno":0, "Account":{ "FullName":"L2", "Email":"l2@gmail.com", "IsLocalUser":true, "Permission":false } } ], "Followerss":[ { "Count":0, "Sno":0, "Account":{ "FullName":"ManagerCxO1", "Email":"managercxo1@gmail.com", "IsLocalUser":true, "Permission":false } } ], "Documents_1":[ ] }, { "Subject":"Rapid2", "StartDate":"2022-09-21T18:30:00.000Z", "DueDate":"2022-09-28T18:30:00.000Z", "Priority":"High", "Description":"<p><span style=\"color: rgb(0, 0, 0);\">Free online string to base64 encoder. Just load your string and it will automatically get converted to base64. Load a string, get base64. There are no intrusive ads, popups or nonsense, just an awesome string to base64 encoder. Created for developers by developers from</span></p>", "IsSubAction":true, "Selected":false, "ShowFileDropper2_2":false, "Edit":false, "CompletionPercentage":0, "saved":false, "Overdue":false, "minValue":0, "maxValue":100, "CommentEdit":true, "Show_progress":true, "previous_progress":0, "ActionType":{ "ActionType":"Business Trip", "IsSelected":false }, "SubAction_Deliverables":[ ], "Assigneess":[ { "Count":1, "Sno":0, "Account":{ "FullName":"L1 Responsible", "Email":"l1responsible@gmail.com", "IsLocalUser":true, "Permission":false } }, { "Count":1, "Sno":0, "Account":{ "FullName":"L1", "Email":"l1@gmail.com", "IsLocalUser":true, "Permission":false } } ], "Followerss":[ { "Count":0, "Sno":0, "Account":{ "FullName":"ManagerCxO1", "Email":"", "IsLocalUser":true, "Permission":false } } ], "Documents_1":[ ] } ] }
asked
Meeradevi Loganathan
1 answers
0
Hi.
I have raised a ticket for this when I faced it and they accept it is a issue nd fixed in 9.12.5.