ExecuteMultipleResponse; How to read and store Guids from the response

前端 未结 1 729
日久生厌
日久生厌 2021-01-15 00:31

I am using ExecuteMultipleResponse method to insert 10 account records at a time using SSIS.

    List _Accounts = new List();
//          


        
相关标签:
1条回答
  • 2021-01-15 00:51

    The guid of a created record should be stored in the OrganizationResponse which can be found inside the ExecuteMultipleResponseItem Try the following to get the guid as a string:

    string id = response.Response.Results["id"].ToString()
    

    If it works as expected you should also be able to instantiate a guid, if needed:

    Guid guid = new Guid(id);
    
    0 讨论(0)
提交回复
热议问题