Janise Dismuke
Posts: 0
Joined: Mon Apr 14, 2014 8:24 pm

how to post a picture as attachment to salesforce?

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

how to post a picture as attachment to salesforce?

Hello Janise,

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

how to post a picture as attachment to salesforce?

Janise,

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

Janise Dismuke
Posts: 0
Joined: Mon Apr 14, 2014 8:24 pm

how to post a picture as attachment to salesforce?

perfect!!! Thank you so much

keith weaver
Posts: 0
Joined: Wed Dec 31, 2014 10:34 pm

how to post a picture as attachment to salesforce?

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

keith weaver
Posts: 0
Joined: Wed Dec 31, 2014 10:34 pm

how to post a picture as attachment to salesforce?

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.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

how to post a picture as attachment to salesforce?

Hello Keith,

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

keith weaver
Posts: 0
Joined: Wed Dec 31, 2014 10:34 pm

how to post a picture as attachment to salesforce?

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.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

how to post a picture as attachment to salesforce?

Keith,

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

Return to “Issues”