function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RhondaBRhondaB 

Please help with attachment upload

I have written code to upload an attachment to Salesforce.com at the end of a process in a custom app. It works fine on sforce.com but when I move my code to production it no longer works.

What am I missing? Does anyone have any idea?

Thanks in advance.

Rhonda Bailey
DevAngelDevAngel
Hi RhondaB,

What kind of response are you recieving?
RhondaBRhondaB


DevAngel wrote:
Hi RhondaB,

What kind of response are you recieving?




Nothing that I can see. It just doesn't appear.
SuperfellSuperfell
Your code should be checking the returned SaveResult for errors, this'll tell you why its not working.
RhondaBRhondaB


SimonF wrote:
Your code should be checking the returned SaveResult for errors, this'll tell you why its not working.




Can you provide an example? I am writing c#.

Rhonda
SuperfellSuperfell
see the c# examples on the resources tab.
RhondaBRhondaB
I figured it out thanks. Here it the error message.

invalid cross reference id

Thanks,

Rhonda
RhondaBRhondaB
OK. Weird. I have not touched the code yet and it appears to be working now. Must have been some kind of delay issue or something. Beats me.

Anyway, thanks for the input all.

Rhonda