<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tyoshikawa1106</author_name>
  <author_url>https://blog.hatena.ne.jp/tyoshikawa1106/</author_url>
  <blog_title>tyoshikawa1106のブログ</blog_title>
  <blog_url>https://tyoshikawa1106.hatenablog.com/</blog_url>
  <categories>
    <anon>Salesforce</anon>
    <anon>Force.com</anon>
  </categories>
  <description>SObject用のList型の値をMap型にセットする際にFor文などでループさせずに一括でセットする方法です。Map型をnewする際に次のように指定します。 Map accountMap = new Map(objAccounts); new Map()の&quot;()&quot;の中にsObject型のリストを指定します。 これでsObject型のIDをKeyにsObject型がセットされます。 次のようにSOQLで指定することも可能です。 Map accountMap = new Map([select Id, Name from Account order by Name asc limit 200])…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftyoshikawa1106.hatenablog.com%2Fentry%2F2012%2F12%2F29%2F193812&quot; title=&quot;SFDC：Mapに一括セット - tyoshikawa1106のブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-12-29 19:38:12</published>
  <title>SFDC：Mapに一括セット</title>
  <type>rich</type>
  <url>https://tyoshikawa1106.hatenablog.com/entry/2012/12/29/193812</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
