How to get entity id of newly created entity using entity_get_controller I am crating the new entity in drupal a below,

$entity = new stdClass();
$entity-&gt;type = 'entity_type';
$entity-&gt;id = 0;
$entity-&gt;title = 'Entity Title';

//Add data to fields
$entity-&gt;field_introduction = array
            (
                'und' =&gt; array
                (
                    "0" =&gt; array
                    (
                        'value' =&gt; $strIntroduction
                    )
                )
            );

     .
     .
     .
     .


    //After adding all the fields, I am saving entity as follows,

entity_get_controller('summary_report')-&gt;save($entity);


Entity get saved successfully. After this I want entity id for the further manipulations. 
How I get this newly created entity id.
Assuming id is the name of your ID entity key, use this after the save:

$id = $entity-&gt;id;


You also have the option of using entity_extract_keys if you want to do it more generically:

list($id, $vid, $bundle) = entity_extract_ids($entity_type, $entity);