-1
返回的數據我新的Rails和使用它與動態CRM API的工作我。我能夠檢索以下數據,其中分配給@data
變量:如何檢索API
{"EntityName"=>"contact", "MinActiveRowVersion"=>-1, "MoreRecords"=>false, "PagingCookie"=>"<cookie page=\"1\"><contactid last=\"{D1092AB4-5452-E511-810C-C4346BB588F0}\" first=\"{D1092AB4-5452-E512-810C-C4346BB588F0}\" /></cookie>", "TotalRecordCount"=>-1, "TotalRecordCountLimitExceeded"=>false, :entities=>[#<DynamicsCRM::XML::Entity:0x007fe0813730e8 @logical_name="contact", @id="d1092ab2-5452-e511-810c-c4346bb588f0", @attributes={"territorycode"=>1, "owningbusinessunit"=>{"Id"=>"2daa0de5-a242-e511-8103-fc15b418f6ec", "LogicalName"=>"businessunit", "Name"=>nil}, "address2_shippingmethodcode"=>1}, @related_entities=nil>]}
我需要從獲得@id
變量。我可以通過打印@data.EntityName
得到EntityName
,但是當我嘗試做@[email protected]
,我得到一個語法錯誤。
任何幫助將不勝感激。
能否請您發佈的'@data輸出[:實體]'? –
它上面貼的一切,是在括號[...] – Kyle
請告訴我們您正在使用訪問演示該問題的值最少的代碼。 –