function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

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. (, ...)

System.debug('Strg '+req.toString();
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,, Referer=, User-Agent=ColdFusion,,}, httpMethod=POST, params={FormID=XXXXX, adid=texas, aid=1, areacode=xxx, campaign=777,, next_url=, pginterest=on, postfix=1507, prefix=555, ...},, 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=,, ...

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
Best Answer chosen by Eric_Arizona
Eli Flores, SFDC DevEli Flores, SFDC Dev
The truncation is only happening inside the system log. All of it should be available within the code that where req is scoped. 

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.