I'm using Commit's low level API.
I found this field inside of Commit with Accounts > Tools > Field Management, then on the Fields List drop down box I selected User Details, I picked Username in the list, and clicked the field settings box below.
When I attempt to query employee record IDs using 'FLDWRKUSERNAME', Commit returns error code 2000, which helpfully indicates 'General Error Occurred'. In my experience, this error is usually returned when that field doesn't exist. I'm wondering if I might be using the wrong data type, based on the different prefix on the field name. (FLDWRK vs. FLDCRD)
Here's an example of the query:
(I tried formatting the XML, but it seems the indent tag does nothing.)
The user exists with that username, and other queries work, for instance, using field 'FLDCRDCONTACT'. This one, however, does not.
What am I doing wrong?
I found this field inside of Commit with Accounts > Tools > Field Management, then on the Fields List drop down box I selected User Details, I picked Username in the list, and clicked the field settings box below.
When I attempt to query employee record IDs using 'FLDWRKUSERNAME', Commit returns error code 2000, which helpfully indicates 'General Error Occurred'. In my experience, this error is usually returned when that field doesn't exist. I'm wondering if I might be using the wrong data type, based on the different prefix on the field name. (FLDWRK vs. FLDCRD)
Here's an example of the query:
<?xml version="1.0" ?>
<?commitcrmxmlqueryrequest version="1.0" ?>
<CommitCRMQueryDataRequest>
<ExternalApplicationName>CommitAgent</ExternalApplicationName>
<Datakind>ACCOUNT</Datakind>
<MaxRecordCount>255</MaxRecordCount>
<Query>
<Where>
<FLDWRKUSERNAME op="=">jkogut</FLDWRKUSERNAME>
</Where>
<Order/>
</Query>
</CommitCRMQueryDataRequest>
<?commitcrmxmlqueryrequest version="1.0" ?>
<CommitCRMQueryDataRequest>
<ExternalApplicationName>CommitAgent</ExternalApplicationName>
<Datakind>ACCOUNT</Datakind>
<MaxRecordCount>255</MaxRecordCount>
<Query>
<Where>
<FLDWRKUSERNAME op="=">jkogut</FLDWRKUSERNAME>
</Where>
<Order/>
</Query>
</CommitCRMQueryDataRequest>
The user exists with that username, and other queries work, for instance, using field 'FLDCRDCONTACT'. This one, however, does not.
What am I doing wrong?
Comment