<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>labunix</author_name>
  <author_url>https://blog.hatena.ne.jp/labunix/</author_url>
  <blog_title>labunix's blog</blog_title>
  <blog_url>https://labunix.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>■Salesforce ロール階層をId順でツリー構造にしてみる。 Salesforce上の設定画面はId順ではないので表示順までは一致しない点に注意。 SOQLでUserRoleオブジェクトから取得する項目は3つ。 SELECT Id, Name, ParentRoleId FROM UserRole ■Linux用にcsvから「\r」を削除 ※SJISならUTF-8に変換もしておく。 $ cat de_usertole.csv | tr -d '\r' &gt; de_usertole_linux.csv ■まずは区切り文字を「,」から「^」に変更する。 $ awk -F, '{print NF…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flabunix.hateblo.jp%2Fentry%2F20230219%2F1676746095&quot; title=&quot;Salesforce ロール階層をId順でツリー構造にしてみる。 - labunix&amp;#39;s blog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/l/labunix/20230219/20230219034737.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-02-19 03:48:15</published>
  <title>Salesforce ロール階層をId順でツリー構造にしてみる。</title>
  <type>rich</type>
  <url>https://labunix.hateblo.jp/entry/20230219/1676746095</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
