REST Get Lead Activities type=2 "Form Fields" how specifications? | Community
Skip to main content
December 20, 2015
Solved

REST Get Lead Activities type=2 "Form Fields" how specifications?

  • December 20, 2015
  • 1 reply
  • 2385 views

Hi

I'm trying to use REST Get Lead Activities » Marketo Developers​ .

If activityTypeIds=2 (Fill Out Form), the response returns "Form Fields".

"Form Fields" includes JSON like strings.

For Example.

{"name":"Form Fields","value":"a:17:{

s:6:\"module\";

s:11:\"leadCapture\";

s:6:\"action\";

s:5:\"save2\";

s:9:\"FirstName\";                 <=== Field name

s:5:\"Jimmy\";                       <=== Input value

s:8:\"LastName\";                 <=== Field name

s:4:\"Page\";                         <=== Input value

s:5:\"Email\";                         <=== Field name

s:19:\"jpage@ogis-ri.co.jp\"; <=== Input value

s:8:\"testText\";                     <=== Field name

s:11:\"Hello world\";              <=== Input value

s:6:\"formid\";

s:4:\"9999\";

s:4:\"lpId\";

s:4:\"8888\";

s:5:\"subId\";

s:3:\"777\";

s:10:\"munchkinId\";

s:11:\"999-XXX-999\";

s:5:\"lpurl\";

s:67:\"//xxxx.ogis-ri.co.jp/myFormLP.html?cr={creative}&kw={keyword}\";

s:2:\"cr\";

s:0:\"\";

s:2:\"kw\";

s:0:\"\";

s:1:\"q\";

s:0:\"\";

s:8:\"_mkt_trk\";

s:59:\"id:999-XXX-999&token:_mch-ogis-ri.co.jp-1445325299999-99999\";

s:7:\"formVid\";

s:4:\"8888\";

s:13:\"_mktoReferrer\";

s:45:\"xxxx.ogis-ri.co.jp/myFormLP.html\";

}"},

I want to know what mean these "s:n" numbers.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

datatype:length

Like PHP serialization format.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
December 20, 2015

datatype:length

Like PHP serialization format.

December 21, 2015

Thank you @Sanford Whiteman​

It's difficult for me to know which is field or value.

SanfordWhiteman
New Participant
December 21, 2015

Yeah, it's not the most intuitive format.  Clearly it's the raw data saved from PHP rather than saved in an independent format. Anyway, within the a(rray) there are 17 elements, and since it's an associative array, it's <nametype1>:<namelength1>:<name1>,<valuetype1>:<valuelength1>:<value1>,<nametype2>:<namelength2>:<name2>,<valuetype2>:<valuelength2>:<value2> and so on.  If you're using Java, you might want to try a PHP-aware library like one of https://www.google.com/search?espv=2&q=deserialize+php+array+in+java&oq=php+array+deserialize+&gs_l=serp.1.3.0i22i30j0i2…