2019-01-01から1年間の記事一覧

Apex Web サービス

trailhead.salesforce.comクラス2つ作る。 1. class ① 動作する。AccountManager.apex @RestResource(urlMapping='/Accounts/*/contacts') global with sharing class AccountManager { @HttpGet global static Account getAccount(){ RestRequest request …

cURLどうするの?

trailhead.salesforce.comモジュールの中でcURLを使い、REST クライアントを使用することがあった。cURLはうまくできなかった。 ... ... "error" : "invalid_grant", "error_description" : "authentication failure" * Connection #0 to host login.salesfo…

Field is not writeable: Contact.Name

success.salesforce.com FirstName='Mani',LastName='Test'

Apex SOAP コールアウト

trailhead.salesforce.com 1. WSDL からの生成 > 「ParkService」 登録;ParkService.xml 2. class ① 作成 「ParkLocator.apex」 xmlのメソッドを呼び出すApex public class ParkLocator { public static List<String> country(String pCountry){ ParkService.ParksI</string>…

The 'Cleaner' profile does not have read only permission for all other standard objects besides account, contact and lead.but only have edit rights on Accounts, Contacts, and Leads.Read Onlyプロファイルを複製して、Accounts, Contacts, and L…

20190322Rookie会「Visualforce編」

HelloAccountEntry.vfp <apex:page Controller="HelloAccountEntryController"> <apex:form > <apex:pageBlock title="HelloAccountEntry" mode="edit"> <apex:pageBlockButtons > <apex:commandButton action="{!save}" value="登録"/> </apex:pageBlockButtons> </apex:pageblock></apex:form></apex:page>

データ管理

trailhead.salesforce.com The 'Lead' records from the CSV were not found. Please check the instructions. 手順通りにインポートしてテータも確認したが、エラー。 検索してみたら、個人設定のLocaleをEnglish(United States) に設定しろって [My person…

IP 範囲

1.ネットワークアクセス > 2.プロファイルのIP 範囲

LWC trailhead 中エラー

trailhead.salesforce.comVScodeでこんなエラーが。 A required metadata folder named "lwc" does not exist in this workspace. 下のサイトを参考に。。 salesforce.stackexchange.comsfdx plugins:install salesforcedx@pre-release これで新しくpre-rele…

リードの割り当てルール

リードの割り当て ※[有効な割り当てルールによりリードを割り当てる]を選択すること!! リード割り当てルールを使用して自動的にリードが割り当てられるようにするには、[有効な割り当てルールによりリードを割り当てる] を選択します。 複数の値設定 ※複数…

取引先

取引先責任者-to-複数取引先 設定が必要。 ・取引先設定で許可 ・ページレイアウトで関連リストを配置(取引先、取引先責任者) help.salesforce.com 階層 取引先責任者の「Reports to」のように 「Parent Account」に入力 取引先チーム -取引先の従業員チー…

Troubleshoot a formula and fix a couple of errors. The following formula, meant to return the last day of the current month, has a couple of errors in it: IF( MONTH( NOW() ) = 12, DATE( YEAR( NOW() ), 12, 31 ), DATE( YEAR( NOW() ), MONTH( …

Create a formula that shows where an Opportunity is in the pipeline. Create a formula field that classifies an Opportunity as either “Early”, “Middle”, or “Late”. This formula field should use TODAY() to calculate what percentage of the ti…

高度な数式

❶書き出す システム管理者以外の誰かが商談の [フェーズ] を「不成立」に変更し、かつ [Loss Reason (不成立の理由)] が空白の場合は、エラーを表示する。 ❷キーワード抽出 「and (かつ/および)」「or (または)」「if (もし/場合)」 tip⑴ 整然 インデントや…

オブジェクトのAPI名・表示ラベル名・項目名取得

1.API名・表示ラベル名(Idを知ってる) Id pId = '0010o00002CUtWOAA1'; System.debug('sobject type is '+ pId.getSObjectType()); System.debug('sobject name is '+ pId.getSObjectType().getDescribe().getName()); System.debug('sobject label is '+ …

Lightning Component ライブラリーが変わってる!

えっ? なに、Playgroundってそんなのあったけ? って思ったらLightning Web Componentが追加されてた! 何があるかな!上からみてみよー!

コンポーネントのアイコンを設定しよう

こんな編集ページでよく表示されてるコンポーネントの雷マークを 梅干しに変えられる。 1. SVGファイルを生成 2. ソース修正 ①タグを消して下記のタグを入れる <image x="0" y="0" width="120px" height="120px" xlink:href="data:image/png;base64,(ここよ)"/> ②(ここよ)のところにイメージをbase64でencodeしたテキストを入れる base64でencodeするサイト </image>…

JSを書かずに一致チェックができる!

emailInput.cmp <aura:component implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global" > <aura:attribute name="email" type="String"/> <lightning:input type="email" label="メールアドレス" name="email" value="{!v.email}" /> </lightning:input></aura:attribute></aura:component>

<lightning:input type="email"..>の入力チェックがちょっと足りないなと思った

①カスタム項目(メール) ②コンポーネント <lightning:input type="email" label="Email" name="email" value="abc@domain.com" /> ③コンポーネント </lightning:input>