You need to sign in to do that
Don't have an account?
Eric_Arizona
What determines how much data is shown after a Rest Request. Data being truncated. (, ...)
What determines how much data is shown after a Rest Request using HttpPost. My data being truncated. (, ...)
1
System.debug('Strg '+req.toString();
2
System.debug('my Rest Request '+req.params);
produces results as follows: see the ... in the examples below:
example one
reqRestRequest:[headers={Cache-Control=max-age=259200, CipherSuite=RC4-MD5 SSLv3 128-bits, Connection=keep-alive, Content-Type=application/x-www-form-urlencoded, Host=robson.secure.force.com, Referer=https://robson.secure.force.com/, User-Agent=ColdFusion, X-Salesforce-Forwarded-To=na1.salesforce.com, X-Salesforce-SIP=xx.xxx.xx.xxx}, httpMethod=POST, params={FormID=XXXXX, adid=texas, aid=1, areacode=xxx, campaign=777, email=myemail@gmail.com, next_url=http://www.robson.com/sem_v2/confirmation.cfm?wantDVD=0&dsd=15&display=&CFID=1234567&CFTOKEN=12345678, pginterest=on, postfix=1507, prefix=555, ...}, remoteAddress=xx.xxx.xx.xxxx, requestBody=Blob[0], requestURI=/sfwebtolead/Robson, resourcePath=/services/apexrest/*]
example two
FormID=FreeDVD, adid=internet, aid=, areacode=555, areasofinterest=, bst_tme=morning, campaign=485, control=0, ectrl=, email=name@emailaddress.com, ...
I believe the data/params in both cases is being truncated and appended with ...
I would like to return the full data so I can write it to a custom LOG file.
What determines how much data is show and where it stops and returns the ...
Thanks, Eric
1
System.debug('Strg '+req.toString();
2
System.debug('my Rest Request '+req.params);
produces results as follows: see the ... in the examples below:
example one
reqRestRequest:[headers={Cache-Control=max-age=259200, CipherSuite=RC4-MD5 SSLv3 128-bits, Connection=keep-alive, Content-Type=application/x-www-form-urlencoded, Host=robson.secure.force.com, Referer=https://robson.secure.force.com/, User-Agent=ColdFusion, X-Salesforce-Forwarded-To=na1.salesforce.com, X-Salesforce-SIP=xx.xxx.xx.xxx}, httpMethod=POST, params={FormID=XXXXX, adid=texas, aid=1, areacode=xxx, campaign=777, email=myemail@gmail.com, next_url=http://www.robson.com/sem_v2/confirmation.cfm?wantDVD=0&dsd=15&display=&CFID=1234567&CFTOKEN=12345678, pginterest=on, postfix=1507, prefix=555, ...}, remoteAddress=xx.xxx.xx.xxxx, requestBody=Blob[0], requestURI=/sfwebtolead/Robson, resourcePath=/services/apexrest/*]
example two
FormID=FreeDVD, adid=internet, aid=, areacode=555, areasofinterest=, bst_tme=morning, campaign=485, control=0, ectrl=, email=name@emailaddress.com, ...
I believe the data/params in both cases is being truncated and appended with ...
I would like to return the full data so I can write it to a custom LOG file.
What determines how much data is show and where it stops and returns the ...
Thanks, Eric
Keep in mind, the size of debug log in capped I think at 2MB so depending on how big that request is, it may never fit into a SFDC debug log.
It looks like they are maps though so you probably can
for (string key : req.params){
system.debug(key + ": " + req.params.get(key));
}
Though a more direct answer is in the debug log, it subs ,.. for the 10th element.