I want to create an Sales Credit Memo API, I created Credit Memo Header by parameter of "Sell to Customer No." but I'm unable to create Sales Credit memo lines by API because from business central it creates its line by button of 'Get Posted Documents lines to reserve' and through selected items it creates its line, I just have to select items from posted sale invoice but I don't understand how to perform this functionality of 'Get Posted Documents lines to reserve' through API. Kindly help me.