SearchEngine's buildSql(string) method?

Hi,

on the SearchEngine class there is a method called buildSql that has two overloads.

String buildSql();

and

String buildSql(String);

 

I understand the first one, but what does the second one do? 

RE: SearchEngine's buildSql(string) method?

Either bad documentation or a bug I guess:

The documentation says it returns string while in CRM Script it sets the variable to void.

Av: Simen Mostuen Iversen 13. jun 2017

RE: SearchEngine's buildSql(string) method?

The version with a string as parameter takes the following values:

select
insert
update
delete

In that way you can specify what kind of query you want get the result for.

Stian

Av: Stian Andre Olsen 13. jun 2017