Skip to main content
deleted 3 characters in body
Source Link
Adrian Larson
  • 151.3k
  • 38
  • 247
  • 431

I am querying in the Workbench with SOQL. I need to query a history object to a custom field, but I want to see changes only to a certain field. What is the syntax to say WHERE Field = MyTargetField ?

I tried this:

SELECT Field, NewValue, OldValue 
FROM MyCustomObject__History
WHERE Field = myTargetField__c

but this generates an error:

MALFORMED_QUERY: 
WHERE Field = myTargetField__c
^
ERROR at Row:3:Column:14
Bind variables only allowed in Apex code

MALFORMED_QUERY:
WHERE Field = myTargetField__c

ERROR at Row:3:Column:14
Bind variables only allowed in Apex code

I am querying in the Workbench with SOQL. I need to query a history object to a custom field, but I want to see changes only to a certain field. What is the syntax to say WHERE Field = MyTargetField ?

I tried this:

SELECT Field, NewValue, OldValue 
FROM MyCustomObject__History
WHERE Field = myTargetField__c

but this generates an error:

MALFORMED_QUERY: 
WHERE Field = myTargetField__c
^
ERROR at Row:3:Column:14
Bind variables only allowed in Apex code

I am querying in the Workbench with SOQL. I need to query a history object to a custom field, but I want to see changes only to a certain field. What is the syntax to say WHERE Field = MyTargetField ?

I tried this:

SELECT Field, NewValue, OldValue 
FROM MyCustomObject__History
WHERE Field = myTargetField__c

but this generates an error:

MALFORMED_QUERY:
WHERE Field = myTargetField__c

ERROR at Row:3:Column:14
Bind variables only allowed in Apex code

added the error verbatim
Source Link
ALisboa
  • 53
  • 1
  • 5

I am querying in the Workbench with SOQL. I need to query a history object to a custom field, but I want to see changes only to a certain field. What is the syntax to say WHERE Field = MyTargetField ?

I tried this:

SELECT Field, NewValue, OldValue 
FROM MyCustomObject__History
WHERE Field = my__cmyTargetField__c

but this generates a "bind variable"an error.:

MALFORMED_QUERY: 
WHERE Field = myTargetField__c
^
ERROR at Row:3:Column:14
Bind variables only allowed in Apex code

I am querying in the Workbench with SOQL. I need to query a history object to a custom field, but I want to see changes only to a certain field. What is the syntax to say WHERE Field = MyTargetField ?

I tried this:

SELECT Field, NewValue, OldValue 
FROM MyCustomObject__History
WHERE Field = my__c

but this generates a "bind variable" error.

I am querying in the Workbench with SOQL. I need to query a history object to a custom field, but I want to see changes only to a certain field. What is the syntax to say WHERE Field = MyTargetField ?

I tried this:

SELECT Field, NewValue, OldValue 
FROM MyCustomObject__History
WHERE Field = myTargetField__c

but this generates an error:

MALFORMED_QUERY: 
WHERE Field = myTargetField__c
^
ERROR at Row:3:Column:14
Bind variables only allowed in Apex code
added 1 character in body
Source Link
Adrian Larson
  • 151.3k
  • 38
  • 247
  • 431

I am querying in the Workbench with SOQL. I need to query a history object to a custom field, but I want to see changes only to a certain field. What is the syntax to say WHERE Field = MyTargetField ?

I tried this:

SELECT Field, NewValue, OldValue 
  FROM MyCustomObject__History
 WHERE Field = my__c

but this generates a "bind variable" error.

I am querying in the Workbench with SOQL. I need to query a history object to a custom field, but I want to see changes only to a certain field. What is the syntax to say WHERE Field = MyTargetField ?

I tried this:

SELECT Field, NewValue, OldValue 
  FROM MyCustomObject__History
 WHERE Field = my__c

but this generates a "bind variable" error.

I am querying in the Workbench with SOQL. I need to query a history object to a custom field, but I want to see changes only to a certain field. What is the syntax to say WHERE Field = MyTargetField ?

I tried this:

SELECT Field, NewValue, OldValue 
FROM MyCustomObject__History
WHERE Field = my__c

but this generates a "bind variable" error.

Source Link
ALisboa
  • 53
  • 1
  • 5
Loading