[Reference url]Error authenticating with the refresh token due to: expired access/refresh token when I try to retrieve/deploy source from org
[Visual Studio]Error authenticating with the refresh token due to: expired access/refresh token
Error authenticating with the refresh token due to: expired access/refresh token
・「Terminal」にて、以下のコマンド文でログアウトする。
例えば、ユーザ名が「testusername@testorg.com」の場合、
sfdx force:auth:logout -u testusername@testorg.com
・Salesforce Extention PackをUninstallする。
・Salesforce Extention Packをinstallする。
・Authorize an orgする。
・package.xmlでメタデータ再取得する。
[Salesforce]カスタムアクション制限事項
カスタムアクション制限事項
- ケースのオブジェクト管理設定から、[ボタン、リンク、およびアクション] に移動します。
- [新規アクション] をクリックします。
- [カスタム Visualforce] を選択します。
- 作成した Visualforce ページを選択してから、アクションウィンドウの高さを指定します。(幅は固定です)。
- アクションの表示ラベルを入力します。これは、パブリッシャーでアクションについてユーザに表示されるテキストです。
- 必要に応じて、アクションの名前を変更します。
- アクションの説明を入力します。説明は、アクションの詳細ページと、[ボタン、リンク、およびアクション] ページのリストに表示されます。説明はユーザに表示されません。
- 必要に応じて、[変更アイコン] をクリックして、アクションに別のアイコンを選択します。このアイコンは、API を介してアクションを使用する場合にのみ表示されます。
[Salesforce]VisualforceでoutputLink押下時新規タブで表示
VisualforceでoutputLink押下時新規タブで表示
<apex:outputLink value="{!URLFOR('/' + targetObject.Id)}" target="_blank" id="TargetObjectId">{!targetObject.Name}</apex:outputLink>
[Salesforce][Reference url]Visualforceアクションヘッダー非表示
[Reference url]Visualforceアクションヘッダー非表示
<apex:page docType="html-5.0" standardController="Campaign" extensions="testController" title="testCreate" showHeader="true" showQuickActionVfHeader="false" sidebar="false" id="testyCreate">
上記の、showQuickActionVfHeader="false"にすることで、アクションヘッダー非表示
[Reference url]Visualforceアクションヘッダー非表示
Visualforceアクションヘッダー非表示
[Salesforce]outputPanelのrendered属性
outputPanelのrendered属性
<apex:commandButton reRender="page1,page2" value="Search"/>
<br/>
<apex:OutputPanel id="page1">
<apex:OutputPanel rendered="{!isDone}">
<apexageBlock title="title1">
title1
</apex:PageBlock>
</apex:OutputPanel>
</apex:OutputPanel>
<apex:OutputPanel id="page2">
<apex:OutputPanel rendered="{!NOT(isDone)}">
<apex:PageBlock title="title2">
title2
</apex:PageBlock>
</apex:OutputPanel>
</apex:OutputPanel>
[Reference url]outputPanelのrendered属性について
outputPanelのrendered属性について
https://developer.salesforce.com/forums/?id=906F00000009BOgIAM
[Salesforce]GMTからseconds取得
GMTからseconds取得
Long gettime = Datetime.now().getTime();
System.debug('gettime:'+gettime);
gettime = gettime/1000;
System.debug('gettime:'+gettime);
結果
17:39:16:003 USER_DEBUG [8]|DEBUG|gettime:1654591156228
17:39:16:003 USER_DEBUG [11]|DEBUG|gettime:1654591156
ここで、1654591156:seconds