This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- var: snowfakery_locale | |
value: ja_JP | |
- object: Account | |
count: 2 | |
fields: | |
Name: | |
fake: company | |
Type: | |
random_choice: | |
- Prospect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// トリガーを作成する対象のオブジェクトとフィールド | |
trigger UpdateGeocode on Account (after update) { | |
// トリガーが実行される条件を指定する | |
for (Account a : Trigger.new) { | |
if (a.BillingStreet != Trigger.oldMap.get(a.Id).BillingStreet || | |
a.BillingCity != Trigger.oldMap.get(a.Id).BillingCity || | |
a.BillingState != Trigger.oldMap.get(a.Id).BillingState || | |
a.BillingCountry != Trigger.oldMap.get(a.Id).BillingCountry || | |
a.BillingPostalCode != Trigger.oldMap.get(a.Id).BillingPostalCode) { | |
// Google Geocoding API のエンドポイント URL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"orgName": "Person Account Company", | |
"edition": "Enterprise", | |
"hasSampleData": true, | |
"features": ["PersonAccounts"], | |
"settings": { | |
"lightningExperienceSettings": { | |
"enableS1DesktopEnabled": true | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SecureDML { | |
public class SecureDMLException extends Exception {} | |
/** | |
* CRUD/FLSチェックを行うinsert | |
*/ | |
public static sObject[] secureInsert(sObject[] records) { | |
return secureDML(records, AccessType.CREATABLE); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { LightningElement, wire, track } from 'lwc'; | |
import getContacts from '@salesforce/apex/NotifyApexErrorSampleController.getContacts' | |
import { notifyApexError } from 'c/util'; | |
export default class NotifyApexErrorSample extends LightningElement { | |
@track contacts; | |
@wire(getContacts) | |
wiredContacts({ error, data }) { | |
if (data) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>three-vrm example</title> | |
<meta | |
name="viewport" | |
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" | |
/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:component > | |
<p>This is a lightning component in a managed package.</p> | |
</aura:component> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:component implements="force:appHostable"> | |
<div> | |
<div aura:id="draggable" draggable="true" class="draggable"></div> | |
<div aura:id="draggable" draggable="true" class="draggable"></div> | |
</div> | |
</aura:component> |