SOLVED

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

Go to solution
Anonymous
Not applicable

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

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:\"http://xxxx.ogis-ri.co.jp/myFormLP.html\";

}"},

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

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

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

datatype:length

Like PHP serialization format.

View solution in original post

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

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

datatype:length

Like PHP serialization format.

Anonymous
Not applicable

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

Thank you Sanford Whiteman

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

SanfordWhiteman
Level 10 - Community Moderator

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

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=...