How can I capture the id of the record that was just saved in a drawer?

I have a custom create-actions.js and I am trying to intercept the id of the record I just created in order to use it in a custom API call.

I can't do what I'm trying to do in a logic hook because I also need the additional parameters passed by the List View Action for parent_ids and parent_module.

/**

* @class View.Views.Base.CreateActionsView

* @alias SUGAR.App.view.views.BaseCreateActionsView

* @extends View.Views.Base.CreateView

*/

({

  extendsFrom: 'BaseCreateActionsView',

  _parentIDs: [],

  _parentModule: [],

  initialize: function(options) {

    if(!_.isUndefined(options.context.get('parent_ids')) && !_.isUndefined(options.context.get('parent_module'))){

      this._parentIDs = options.context.get('parent_ids');

      this._parentModule = options.context.get('parent_module');

    }

    this._super('initialize', [options]);

  },

  initiateSave: function (callback){

    this._super('initiateSave', [callback]);

    //get the id of the record that was just saved and call an API

  },

})

 

thanks,
FrancescaS