Skip to main content
May 22, 2018
New

Get Custom objects: Missing error validation for filterValues field

  • May 22, 2018
  • 3 replies
  • 4331 views

Hi,

Please find below concern raised during the testing cycle. We are reporting this as an idea since it's a good to have feature in future.

If we enter an invalid filterValue in the filterValues field say, 123 instead of a valid email id in case the filter is on email, or abc instead of a valid value for filter on marketoGUID, it returns an empty result set.

It should say "Invalid filter value entered" or similar.

Request:

GET https://uat-partnerapi.rest.com.au/marketo/1.0.0/rest/v1/customobjects/oN24Attended_c.json?filterType=marketoGUID&filterValues=123&batchSize=10 HTTP/1.1
Accept-Encoding: gzip,deflate
Authorization: Bearer 5cb196b3-4a2c-37d0-8a95-9144aa6cb991
marketoenv: SANDBOX
Host: uat-partnerapi.rest.com.au
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

Response:
HTTP/1.1 200 OK
Access-Control-Allow-Headers: authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction
Access-Control-Allow-Methods: POST,GET
Access-Control-Allow-Origin: *
Content-Type: application/json;charset=UTF-8
Date: Mon, 21 May 2018 06:43:36 GMT
Content-Length: 59
Connection: keep-alive

{"requestId":"92f9#16381706252","result":[],"success":true}

Regards,

Evanthika

3 replies

SanfordWhiteman
Level 10
May 22, 2018

"123" is a valid Email value. Nothing wrong there.

"abc" may not be a valid hyphen-grouped GUID format but I've never seen a single system that does format validation on this datatype. That's overengineering, like validating if a SHA-1 hash is 40 characters and throwing a different error -- why bother when matching it is all that matters?

May 22, 2018

Hi Sanford,

Usually, in all other scenarios we have worked before, usually, if we enter an invalid email is passed, it usually does a validation and hence the reason why we raised this to be fixed for a future release. Thanks for your feedback anyways.

Regards,

Evanthika

SanfordWhiteman
Level 10
May 22, 2018

That makes no sense whatsoever.

"123" is a valid email value in Marketo. It can't be a blocked filter value.

This is not a bug.

Mike_Reynolds2
Level 10
June 1, 2018

@Sanford Whiteman,

Thank you for your input. Ideas posted here in the Community are reviewed by the Product team. They will be the authority to answer definitively whether there are work arounds available or if a new feature should be developed.

We value the input of our Community users because it provides insight into pain points customers experience. That in turn guides how changes are made. Sometimes the change is an enhancement to the product. Other times it's a revision to documentation to add clarity and remove confusion. In either case, the Ideas section here is where people can come and submit recommendations on how to remove that pain point. The Discussions section of the Community is where marketers help fellow marketers to answer questions about how to build solutions. I'm sure that if Evanthika Amarasiri​ had wanted an argument over the validity of her idea of a solution to this pain point, she would have posted this there and asked for feedback there instead.

Again, thank you for your input!

Mike

SanfordWhiteman
Level 10
June 1, 2018

Mike, this suggestion would break critical functionality and make querying the entire database impossible. Vetting the technical validity of an Idea is something that in-depth users of the platform do all the time. This one would not merely be an annoyance or a feature we could ignore and leave to those who want it. It would break everything we do, in fact even breaking proper operation for the person requesting it (unbeknownst to them).

Were I convinced that no mistakes were ever made in implementing features without power users' input, I would have felt no need to object, but experience shows otherwise and there's no place to provide that feedback to the product team privately w/r/t an idea.

Mike_Reynolds2
Level 10
June 1, 2018

Fair points. Our Product team who designs the product is still the authority on the matter.

Perhaps the miscommunication came in the tone used when discussing it? That would explain the 3 Community Moderator reports of abusive behavior we received from someone who happened to come across the thread. The Community is a place where marketers can come together and work cooperatively together. Nobody is right 100% of the time, not your average Marketo user, power users, or even our Product team members.

You are one of the most helpful power users we have. You've become a well known resource for Community members and have a reputation that many in Marketo know quite well! I've already checked on this one earlier this morning and yeah, you're right. Most times, you are. But dude.... really.... just take it down a notch, 'eh? The goal is to help people, not to make them feel bad for being wrong. You're helping people out and I know your intention is to share the knowledge you have. Just know that the impression received by a random person who happened to find the thread wasn't that you were helpful - it motivated them to report it as abusive. Send me a direct message if you have any questions or concerns. I'm always open to discussions!

-Mike

February 4, 2020
No text available