You need to sign in to do that
Don't have an account?
How to upload a file to a case and change the ownerID using ContentVersion?
Hi,
I am migrating all tickets from Jira to Salesforce. I successfully imported cases and case comments. In order to upload a file to a case, I'm using ContentVersion object and writing a trigger to update FirstPublishLocationId to the Id of a case after insert. The files are uploaded to a case but the OwnerId field isn't affected. The owner is the user running the API by default.
I read some posts and they said that this OwnerId is only updatable, not creatable.
I tried to export all records from ContentVersion object with the hope that I can get the ID and update the OwnerId. The problem is I don't see the file which I uploaded to Salesforce using the API in the report.
I am really stuck. Can you please advise how to update the owner of the file? Or you have any other approaches to upload files to a case. Please advise.
Thanks in advance.
If I click on "View File Detail", the owner is correct "Tina Tran". I have no idea why it's inconsistent. Please advice.
Thanks for your answer. I cleared the cache, refreshed the page (F5/Ctrl+F5), logged out / logged in again, even tried with another browser (Firefox). The issue remains.
If yes then please drop an email/message to one of the following:
Gmail: abhibansal2790@gmail.com
Skype: abhishek.bansal2790
Phone: +917357512102(WhatsApp)