Skip to main content

How to define which fields to get

  • April 20, 2020
  • 1 reply
  • 6 views

Forum|alt.badge.img

hi, i have this php code. i want to filter the fields to be retrieved to only 2 fields as ‘Registration No.1’ and ‘Registration No.2’. However i cannot get it to work. Here is my array:

$params = array(

“filterByFormula” => “AND({Email Address}=‘xristos@skyworx.com.cy’)”,
“fields” => [{Registration No.1}, {Registration No.2}],
“view” => “Registration Application”,

);

Can u heklp me out?

1 reply

kuovonne
Forum|alt.badge.img+29
  • Brainy
  • 6009 replies
  • April 21, 2020

What error message are you getting?

Does everything work if you comment out the filterByFormula line?

If you put the filter in a formula field in the user interface, does it show true (1) for the two records you expect?

You should not need the AND function in your formula, as you have only one condition.