• Milan Tomic 14
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 1
    Replies
I have a task to export data for about 60 Salesforce users then to edit them and import it back again. I am not allowed to use specialised web sites for data export/import where you provide user/pass because data is too sensitive. I intend to create Java client application and to use Bulk API.

Is there any way to create some kind of super user which will access data for 60 users through Bulk API?

Thank you in advance
Hi

While executing this code:

Task[] records = new Task[5];

            QueryResult queryResults = connection.query("SELECT Id, Subject, Description FROM Task LIMIT 5");
            if (queryResults.getSize() > 0) {
                for (int i = 0; i < queryResults.getRecords().length; i++) {
                    Task d = (Task) queryResults.getRecords()[i];
                    d.setDescription(d.getDescription() + " -- UPDATED");
                    records[i] = d;
                }
            }

            // update the records in Salesforce.com
            SaveResult[] saveResults = connection.update(records);

I got this error:

[InvalidSObjectFault [ApiQueryFault [ApiFault  exceptionCode='INVALID_TYPE'
 exceptionMessage='Must send a concrete entity type.'
]
 row='-1'
 column='-1'
]
]

Any idea what could be wrong? :)
Hello

While executing this code:

Task[] records = new Task[5];

            QueryResult queryResults = connection.query("SELECT Id, Subject, Description FROM Task LIMIT 5");
            if (queryResults.getSize() > 0) {
                for (int i = 0; i < queryResults.getRecords().length; i++) {
                    Task d = (Task) queryResults.getRecords()[i];
                    d.setDescription(d.getDescription() + " -- UPDATED");
                    records[i] = d;
                }
            }

            // update the records in Salesforce.com
            SaveResult[] saveResults = connection.update(records);

I got this error:

[InvalidSObjectFault [ApiQueryFault [ApiFault  exceptionCode='INVALID_TYPE'
 exceptionMessage='Must send a concrete entity type.'
]
 row='-1'
 column='-1'
]
]

Any idea what could be wrong? :)
I have a task to export data for about 60 Salesforce users then to edit them and import it back again. I am not allowed to use specialised web sites for data export/import where you provide user/pass because data is too sensitive. I intend to create Java client application and to use Bulk API.

Is there any way to create some kind of super user which will access data for 60 users through Bulk API?
I need also to export, edit and import back emails in Salesforce. Is this possible?

Thank you in advance
Hi

While executing this code:

Task[] records = new Task[5];

            QueryResult queryResults = connection.query("SELECT Id, Subject, Description FROM Task LIMIT 5");
            if (queryResults.getSize() > 0) {
                for (int i = 0; i < queryResults.getRecords().length; i++) {
                    Task d = (Task) queryResults.getRecords()[i];
                    d.setDescription(d.getDescription() + " -- UPDATED");
                    records[i] = d;
                }
            }

            // update the records in Salesforce.com
            SaveResult[] saveResults = connection.update(records);

I got this error:

[InvalidSObjectFault [ApiQueryFault [ApiFault  exceptionCode='INVALID_TYPE'
 exceptionMessage='Must send a concrete entity type.'
]
 row='-1'
 column='-1'
]
]

Any idea what could be wrong? :)