OnDemand Users Group

Support Forums => ODWEK, Java and REST APIs => Topic started by: ODCoder on March 08, 2019, 09:10:19 AM

Title: Folder Field Definitions with Spaces
Post by: ODCoder on March 08, 2019, 09:10:19 AM
Hello everyone,

I'm trying to search a folder, using SQL Search.  One of the folder properties is called "Customer Number", not the space in the middle.


In my search, I can use

where Name = 'Test User'

with no problems.  However, if there is a space, it causes issues, and I cant seem to figure it out.

where Customer Number = 1234

I have tried with quotes, brackets, square brackets, single quotes, removing the space etc.  Any idea's please?


Thank you.
Title: Re: Folder Field Definitions with Spaces
Post by: Alessandro Perucchi on March 08, 2019, 10:53:11 AM
with which technology? Java API?

Have you tried with the ag field name instead of the folder field name?
Title: Re: Folder Field Definitions with Spaces
Post by: Justin Derrick on March 08, 2019, 01:01:17 PM
Just confirming what Alessandro said - you'll need to use the AG Field names if you're going to send raw SQL.  Otherwise you use the API calls to do your searches.
Title: Re: Folder Field Definitions with Spaces
Post by: ODCoder on March 12, 2019, 09:15:55 AM
Apologies for my late response!

Huge thank you, that worked a treat.  I should have realised it was the AG fields, that the folder was just a view and display names.  Almost done, 1 last issue which I will post now.  Great forum and community, been reading loads!

Regards

DB
Title: Re: Folder Field Definitions with Spaces
Post by: Justin Derrick on March 12, 2019, 02:35:51 PM
Hi DB.  :)

I'm glad to hear you're getting so much from the forums.  Don't forget to give back, and update your questions with the ultimate solutions, etc.

-JD.
Title: Re: Folder Field Definitions with Spaces - Answered
Post by: ODCoder on March 12, 2019, 04:50:20 PM
That's Justin.

Answer to the initial question:-

Use the application group's field definitions, instead of the folder field definitions.  In my example, Customer_Name not Customer Name.