MethodCRM api には、この例が .Net にあります
Dim arrUpdateFieldsArray(1) As String
Dim arrUpdateValueArray(1) As String
arrUpdateFieldsArray(0) = Me.txtUpdateField1.Text
arrUpdateValueArray(0) = Me.txtUpdateValue1.Text
arrUpdateFieldsArray(1) = Me.txtUpdateField12Text
arrUpdateValueArray(1) = Me.txtUpdateValue2.Text
'Call the MethodAPI to update the record
sResult = wbsMethodAPI.MethodAPIUpdateV2(sCompanyAccount, sUserName, sPassword, "", _sUpdateTable, arrUpdateFrieldsArray, arrUpdateValueArray, intRecordID)
wbsMethodAPI = Nothing
これと同等のものを構築しようとしましたが、成功しませんでした。これが私が試したものです
<CFSCRIPT>
s = "salesRep,CustomerType";
array1 = s.split(",");
s = "#Signature_RepName#,#Payment_CompanyType#";
array2 = s.split(",");
string = CreateObject("java", "java.lang.String");
array = CreateObject("java", "java.lang.reflect.Array");
cookies = array.newInstance(string.getClass(), 3);
array.set(cookies, 0, "salesRep");
array.set(cookies, 1, "CustomerType");
string2 = CreateObject("java", "java.lang.String");
array2 = CreateObject("java", "java.lang.reflect.Array");
cookies2 = array2.newInstance(string.getClass(), 3);
array2.set(cookies2, 0, "#Signature_RepName#");
array2.set(cookies2, 1, "#Payment_CompanyType#");
</CFSCRIPT>
<cfhttp url="https://www.methodintegration.com/MethodAPI/service.asmx/MethodAPIUpdateV2" method="GET">
<cfhttpparam type="URL" name="strCompanyAccount" value="xxxx"/>
<cfhttpparam type="URL" name="strLogin" value="xxxx"/>
<cfhttpparam type="URL" name="strPassword" value="xxxx"/>
<cfhttpparam type="URL" name="strSessionID" value=""/>
<cfhttpparam type="URL" name="strTable" value="Customer"/>
<cfhttpparam type="URL" name="arrUpdateFieldsArray" value=#cookies#/>
<cfhttpparam type="URL" name="arrUpdateValueArray" value=#cookies2#/>
<cfhttpparam type="URL" name="intRecordID" value="#customerid#"/>
</cfhttp>
私が間違っていることを教えてください。ティア