• moscowmule888
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 1
    Replies

主従関係を結んだ従オブジェクトの履歴レポートを作成したいのですが、

レポートタイプ一覧に表示されません。

 

主オブジェクトの履歴レポートは一覧に表示されます。

 

レポートタイプの作成からも履歴レポートは作成できないようです。

 

従オブジェクトの履歴レポートは作成できないものなのでしょうか?

 

お分かりになる方がおりましたら、教えて頂きたいです。

 



カスタムボタン押下時のアクションとして、

OnClick JavaScriptを設定し、

JavaScript からSalesforce上に作成したWeb Serviceをコールしたいのですが、

なかなかうまくいきません、

 

// WebService

global class Hoge {
    webservice static Account foo() {
        // 適当な処理
    }
}

 

// JavaScript

{!REQUIRESCRIPT('/soap/ajax/10.0/connection.js')}
var envelope =
  '<?xml version="1.0"?>' +
  '<methodCall>' +
  '  <methodName>foo</methodName>' +
  '  <params></params>' +
  '</methodCall>';

sforce.connection.remoteFunction({
    url : 'https://na7-api.salesforce.com/services/Soap/class/Hoge',
    requestHeaders : {'Content-Type' : 'text/xml', 'SOAPAction' : "\"\""},
    requestData : envelope,
    method : 'POST',
    onSuccess : function(response) {
        alert('Success' + response);
    },
    onFailure : function(response) {
        alert('Failed' + response);
    }
});

 

上記のソースでカスタムボタンを押下すると、Faultとなり

The SOAP request must use SOAP 1.1, did not recieve a SOAP 1.1 Envelope as the document root

となってしまいます。

 

どなたかか、sforce.connection.remoteFunctionからSFDC上のWebServiceのコール方法を

ご存じの方がいらっしゃいましたら、ご教授頂きたいです。

 

やりたいことは、カスタムボタン押下時にSFDC上のWebServiceをコールすること(画面遷移はしない)なので、

remoteFunctionを使わずWebServiceをコールする方法でも構いません。

 

よろしくお願い致します。

 




カスタムボタン押下時のアクションとして、

OnClick JavaScriptを設定し、

JavaScript からSalesforce上に作成したWeb Serviceをコールしたいのですが、

なかなかうまくいきません、

 

// WebService

global class Hoge {
    webservice static Account foo() {
        // 適当な処理
    }
}

 

// JavaScript

{!REQUIRESCRIPT('/soap/ajax/10.0/connection.js')}
var envelope =
  '<?xml version="1.0"?>' +
  '<methodCall>' +
  '  <methodName>foo</methodName>' +
  '  <params></params>' +
  '</methodCall>';

sforce.connection.remoteFunction({
    url : 'https://na7-api.salesforce.com/services/Soap/class/Hoge',
    requestHeaders : {'Content-Type' : 'text/xml', 'SOAPAction' : "\"\""},
    requestData : envelope,
    method : 'POST',
    onSuccess : function(response) {
        alert('Success' + response);
    },
    onFailure : function(response) {
        alert('Failed' + response);
    }
});

 

上記のソースでカスタムボタンを押下すると、Faultとなり

The SOAP request must use SOAP 1.1, did not recieve a SOAP 1.1 Envelope as the document root

となってしまいます。

 

どなたかか、sforce.connection.remoteFunctionからSFDC上のWebServiceのコール方法を

ご存じの方がいらっしゃいましたら、ご教授頂きたいです。

 

やりたいことは、カスタムボタン押下時にSFDC上のWebServiceをコールすること(画面遷移はしない)なので、

remoteFunctionを使わずWebServiceをコールする方法でも構いません。

 

よろしくお願い致します。

 



カスタムボタン押下時のアクションとして、

OnClick JavaScriptを設定し、

JavaScript からSalesforce上に作成したWeb Serviceをコールしたいのですが、

なかなかうまくいきません、

 

// WebService

global class Hoge {
    webservice static Account foo() {
        // 適当な処理
    }
}

 

// JavaScript

{!REQUIRESCRIPT('/soap/ajax/10.0/connection.js')}
var envelope =
  '<?xml version="1.0"?>' +
  '<methodCall>' +
  '  <methodName>foo</methodName>' +
  '  <params></params>' +
  '</methodCall>';

sforce.connection.remoteFunction({
    url : 'https://na7-api.salesforce.com/services/Soap/class/Hoge',
    requestHeaders : {'Content-Type' : 'text/xml', 'SOAPAction' : "\"\""},
    requestData : envelope,
    method : 'POST',
    onSuccess : function(response) {
        alert('Success' + response);
    },
    onFailure : function(response) {
        alert('Failed' + response);
    }
});

 

上記のソースでカスタムボタンを押下すると、Faultとなり

The SOAP request must use SOAP 1.1, did not recieve a SOAP 1.1 Envelope as the document root

となってしまいます。

 

どなたかか、sforce.connection.remoteFunctionからSFDC上のWebServiceのコール方法を

ご存じの方がいらっしゃいましたら、ご教授頂きたいです。

 

やりたいことは、カスタムボタン押下時にSFDC上のWebServiceをコールすること(画面遷移はしない)なので、

remoteFunctionを使わずWebServiceをコールする方法でも構いません。

 

よろしくお願い致します。