LoginSignup
3
3

More than 5 years have passed since last update.

Salesforceのsobjectのフィールド一覧を出力する

Posted at

前提

forcetk.js+rest api+proxy.php
oauth認証済み

get_fields.js
solocb = function(o){
  for(var i=0;i < o.fields.length;i++){
    console.log(o.fields[i].label);
    console.log(o.fields[i].name);
  }
}

common.client = new forcetk.Client(common.client_id, null, common.proxy_url);

common.client.describe('User',solocb);

出力結果

ユーザ ID
Id
ユーザ名
Username

LastName

FirstName
氏名
Name
会社名
CompanyName
ディビジョン
Division
部署
Department
役職
Title
町名・番地
Street
市区郡
City
都道府県
State
郵便番号
PostalCode

Country
メール
Email
電話
Phone
Fax
Fax
携帯電話
MobilePhone
別名
Alias
コミュニティのニックネーム
CommunityNickname
有効
IsActive
タイムゾーン
TimeZoneSidKey
ロール ID
UserRoleId
地域
LocaleSidKey
ニュースレター
ReceivesInfoEmails
管理者向けニュースレター
ReceivesAdminInfoEmails
メールの文字コード
EmailEncodingKey
プロファイル ID
ProfileId
ユーザ種別
UserType
言語
LanguageLocaleKey
従業員番号
EmployeeNumber
代理承認者 ID
DelegatedApproverId
マネージャ ID
ManagerId
最終ログイン
LastLoginDate
前回のパスワードの変更またはリセット
LastPasswordChangeDate
作成日
CreatedDate
作成者 ID
CreatedById
最終更新日
LastModifiedDate
最終更新者 ID
LastModifiedById
System Modstamp
SystemModstamp
Force.com Connect Offline トライアル期限
OfflineTrialExpirationDate
Sales Anywhere トライアル期限
OfflinePdaTrialExpirationDate
マーケティングユーザ
UserPermissionsMarketingUser
オフラインユーザ
UserPermissionsOfflineUser
コールセンターへの自動ログイン
UserPermissionsCallCenterAutoLogin
Apex モバイルユーザ
UserPermissionsMobileUser
Salesforce CRM Content ユーザ
UserPermissionsSFContentUser
ナレッジユーザ
UserPermissionsKnowledgeUser
Force.com Flow ユーザ
UserPermissionsInteractionUser
Service Cloud ユーザ
UserPermissionsSupportUser
Site.com Contributor ユーザ
UserPermissionsSiteforceContributorUser
Site.com Publisher ユーザ
UserPermissionsSiteforcePublisherUser
売上予測を許可
ForecastEnabled
ActivityRemindersPopup
UserPreferencesActivityRemindersPopup
EventRemindersCheckboxDefault
UserPreferencesEventRemindersCheckboxDefault
TaskRemindersCheckboxDefault
UserPreferencesTaskRemindersCheckboxDefault
ReminderSoundOff
UserPreferencesReminderSoundOff
DisableAllFeedsEmail
UserPreferencesDisableAllFeedsEmail
DisableFollowersEmail
UserPreferencesDisableFollowersEmail
DisableProfilePostEmail
UserPreferencesDisableProfilePostEmail
DisableChangeCommentEmail
UserPreferencesDisableChangeCommentEmail
DisableLaterCommentEmail
UserPreferencesDisableLaterCommentEmail
DisProfPostCommentEmail
UserPreferencesDisProfPostCommentEmail
DisableAutoSubForFeeds
UserPreferencesDisableAutoSubForFeeds
ApexPagesDeveloperMode
UserPreferencesApexPagesDeveloperMode
DisableMentionsPostEmail
UserPreferencesDisableMentionsPostEmail
DisMentionsCommentEmail
UserPreferencesDisMentionsCommentEmail
DisCommentAfterLikeEmail
UserPreferencesDisCommentAfterLikeEmail
DisableLikeEmail
UserPreferencesDisableLikeEmail
DisableMessageEmail
UserPreferencesDisableMessageEmail
DisableBookmarkEmail
UserPreferencesDisableBookmarkEmail
DisableSharePostEmail
UserPreferencesDisableSharePostEmail
取引先責任者 ID
ContactId
取引先 ID
AccountId
コールセンター ID
CallCenterId
内線
Extension
SAML 統合 ID
FederationIdentifier
自己紹介
AboutMe
現在の状況
CurrentStatus
実寸大の写真の URL
FullPhotoUrl
写真サイズのサムネイルの URL
SmallPhotoUrl
Chatter メールハイライト送信頻度
DigestFrequency
グループに参加する場合のデフォルト通知頻度
DefaultGroupNotificationFrequency

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3