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
professoreprofessore 

Unable to save an attachment to a Campaign or a Document using API connection

Hi

 

As in the subject.  For all other data stores (Accounts, Opportunities, Leads etc) it works perfectly. The system works by selecting the ID of the relevant data store (e.g. for Documents it's a DocumentID, Accounts is AccountID etc ... ) and then saving an Attachment with the data store ID as the Attachment  parent ID.

 

For Campaigns the error I get back is :

 

insufficient access rights on cross-reference id

 

For Documents I get :

 

Parent ID: ID value of incorrect type

 

Any ideas what the problem might be ?

 

Thanks

 

*werewolf**werewolf*

These are likely 2 entirely different issues.  For campaigns: do you have edit access on campaigns?  Is Marketing User checked on in your user record?

 

For Documents: what are you specifying in the Parent ID field?  In this case, the error message is likely telling you exactly what the problem is.

jhurstjhurst

To add onto werewolf's comment:

 

You description indicates that you are creating an attachment on the record passed in.  This would mean you are trying to create an attachment linked to a document.  Documents do not support attachments.

professoreprofessore

Thanks guys,

 

I will check it out and let you know how I get on.