• Masahito Akashi
  • NEWBIE
  • 0 Points
  • Member since 2015
  • サンビット株式会社

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 4
    Replies
I requested callout POST by setting the parameters in the setBody using Continuation Class.
but Parameter is not set in received server.
// Create continuation with a timeout
Continuation con = new Continuation(40);
// Set callback method
con.continuationMethod='processResponse';

// HTTP Request
HttpRequest req = new HttpRequest();
req.setEndpoint(getCalloutURL());
req.setMethod('POST');

// POST Parameters
List<String> params = new List<String>();
params.add('UserId=' + 'test');
params.add('Password=' + 'pass');
req.setBody(String.join(params, '&'));

// Add callout request to continuation
this.requestLabel = con.addHttpRequest(req);

return con;
How should I do it?


 
標準機能であるリストビューのデータの並べ替えをデフォルト設定し共通設定として使用したいのですが
APEXで制御できるものなのでしょうか?
もしできる方法をお分かりになる方がおられましたらご教授頂きます様宜しくお願い致します
※リストビューの呼び出し元はVisualForceにて作成しています


【補足】
ユーザー単位にリストビューのソート情報が保有されているのですが、全ユーザー同じソート条件で並べ替えを行い情報を表示させたい
 
I requested callout POST by setting the parameters in the setBody using Continuation Class.
but Parameter is not set in received server.
// Create continuation with a timeout
Continuation con = new Continuation(40);
// Set callback method
con.continuationMethod='processResponse';

// HTTP Request
HttpRequest req = new HttpRequest();
req.setEndpoint(getCalloutURL());
req.setMethod('POST');

// POST Parameters
List<String> params = new List<String>();
params.add('UserId=' + 'test');
params.add('Password=' + 'pass');
req.setBody(String.join(params, '&'));

// Add callout request to continuation
this.requestLabel = con.addHttpRequest(req);

return con;
How should I do it?


 

Record type unavailable Cannot find default record type of the appropriate type.

 

I am seeing this error when trying to Convert a lead. I have checked the profile for the current user, and the default record types are both Contacts and Accounts are accessible. (I have selected Do Not Create Opportunity, though there are no opportunity record types).

 

The docs were no help at all, no results in Google for the error. Does anyone know what the solution is?