• scott-dev
  • NEWBIE
  • 5 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hello, can someone point me to a data model on objects that are related to the Salesforce Community. I'm having trouble understanding how User, Contact, NetworkMember, and Network objects work together in the community.
Hello all,

We are migrating data from our Lithium Community to Salesforce Community. I'm using a java application that I've written to handle the data migration via SOAP API into Salesforce (using the Enterprise WSDL). I'm currently needing to migrate forum posts into Salesforce in the form of a FeedItem - this migration is working except for mesages that contain inline images.I receive this error:

Referenced file id is invalid, not accessible, or does not exist

Doing considerable searching on this topic, I've attempted to base64 encode the images and include them in the body of the html, but I still receive the same error. The primary article that I am following indicates I can import inline images if encoded in base64: http://developer.force.com/cookbook/recipe/converting-a-rich-text-area-fields-image-for-api-upload

Here is the html for the image that I last received the error message:
<img alt="testfilename" src="data:image/gif;base64,R0lGODlhEAAQANX/AAICAP7jAf3iBP/lC//mEzItBNS/Ev/pLf/qPtvKN/7sUh8dCv7wdjY0IPz0rf/6zfvfAPbXAPPUAPjbAe7UAtzEAsq0A/rdBf/hHf/mI9HEZvrujfHQAO7NAOrHAOfFAPLQFP3dGeK8AOfCDmpaB+zJEt2zCuK6DNaqB9K7mv8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAACoALAAAAAAQABAAQAa0QJVQiMFkipihcCQRDA4KhlSRIQQgnZMqREBoGo9Hw8FAEAQgIUrUmQTebwiEI0INMQQoY1OuCkJCJRddDA5hKXxmAhwnJh8REiQLkwUkFm8SdUMmJx4dHB0eIiZ2SipGGQeqBANFShhPChphDhtUAxBpIBBdGwBhY2VnjCUTAxkKGw61DLcQEicnHRATBgYJ2CUDbxMeJiomHhEQARMUFBUU5R6l4Gzjcs8dmqbgJvco7UJBADs="></img>

The FeedItem object field I'm mapping to is called Body and it is of type "textarea". The article mentions it must be a field of type "richtext", but the FeedItem object contains a field called "IsRichText" that I set to true as well.

Does anyone know of a better way to import these inline images via the API, or why I might be receiving this error? I've got about 30,000 messages to import, so it needs to be programmatic solution.

Any insights would be helpful. Thanks!

 

Hi All,

 

I'm trying to copy some custom objects that have a rich text field included in them from a sandbox org back to it's production org. I've tried doing this with the data loader but the images came over as broken links - likewise with copying and pasting the data between orgs.

 

Is there really no way to move the image data over along with the rich text fields? This seems like a major oversight if so.