Page 1 of 2

how to post a picture as attachment to salesforce?

Posted: Fri Jul 25, 2014 3:38 pm
by Janise Dismuke

Not sure whether to pass the imageDataBase64, imageURL, or something else in order for the attachment to successfully load in salesforce. Right now I am passing imageDataBase64 which is resulting in (see attachment) Image Image


how to post a picture as attachment to salesforce?

Posted: Fri Jul 25, 2014 5:50 pm
by Evgene Karachevtsev

Hello Janise,

Could you please provide us with some screenshots to make it clear what do you do (what service is called, its parameters)


how to post a picture as attachment to salesforce?

Posted: Fri Jul 25, 2014 6:39 pm
by Janise Dismuke

how to post a picture as attachment to salesforce?

Posted: Fri Jul 25, 2014 8:24 pm
by Evgene Karachevtsev

Janise,

In mapping in parameter Body add this js code
prereturn value.slice(value.indexOf("base64,")+7);/pre


how to post a picture as attachment to salesforce?

Posted: Fri Jul 25, 2014 9:36 pm
by Janise Dismuke

perfect!!! Thank you so much


how to post a picture as attachment to salesforce?

Posted: Sun Jan 25, 2015 11:56 pm
by keith weaver

I tried this and it doesn't seem to be working for me. It is saving a file in salesforce but it is a text file of what looks like jibberish. Image


how to post a picture as attachment to salesforce?

Posted: Mon Jan 26, 2015 12:23 am
by keith weaver

Actually it is working on my computer when I test the App but when I test it on the appery.io iphone app tester the images do not show up. Other images that I have loaded into the database from my computer show up fine but the images that were taken with my camera are not showing.


how to post a picture as attachment to salesforce?

Posted: Mon Jan 26, 2015 10:10 am
by Evgene Karachevtsev

Hello Keith,

Could you please clarify, do you get it working if you test it as .ipa file installed on a device?


how to post a picture as attachment to salesforce?

Posted: Mon Jan 26, 2015 2:05 pm
by keith weaver

Currently I am not an Apple developer so I can't create and load the .ipa file. The interesting thing is sometimes the images show up and sometimes they do not. They usually show up if I re-map the Image asset. They will show up maybe running the app once or twice but then all images stop showing up.


how to post a picture as attachment to salesforce?

Posted: Tue Jan 27, 2015 8:01 am
by Evgene Karachevtsev

Keith,

Could you please share your project with support and provide us with the steps to reproduce the issue?