Skip to main content
Question

Insert Salesforce issue with related record (Sharing record)

  • November 13, 2024
  • 1 reply
  • 19 views

cnorth
Contributor
Forum|alt.badge.img+1

Hi,

 

Currently have a process that recieves a list of record id’s from Salesforce using HTTP callouts, the record ID include the ID of records from a custom object and the id of a number of users, we are trying to create an insert in the customobject_share to create records to give the list of userId access to the records from out custom object. 

 

We currently are getting an error,

Salesforce Writer: Record 1 was not processed successfully: 'FIELD_INTEGRITY_EXCEPTION:invalid parent id: Parent ID:ParentId --'

 

The parent id is the record Id of the salesforce record we are creating a related share record against. the record exist in salesforce and in testing we have event tried hardcoding te ID of both records, and user Id with RowCause = “Manual” and Access Level = “Edit”.

 

The form is running as using the Salesforce reader/writer with a System Admins login details?

 

Thanks

 

 

1 reply

hkingsbury
Celebrity
Forum|alt.badge.img+55
  • Celebrity
  • November 13, 2024

Based on that error it sounds like you’re not supplying the correct ID


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings