You need to sign in to do that
Don't have an account?
Thomas Murad
How insert ID into fields
I want to know how i can take id of comSF and put in my fields CommentSF_Id__c
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
While you inserting the record Salesforce will not allow you to declare the Id for the record. Record Id will be generated by Salesfroce automatically on Insertions.
If you want to link these two case comment create a custom field where you have to populate the CommentNB.CommentSF_ID__c to track the related case comments.
Thanks,
Maharajan.C
All Answers
// Commentaires de SF = Nouveau commentaire SF via les informations de la table NB
CaseComment comSF = new CaseComment (CommentBody = CommentNB.CommentBody__c, IsPublished = CommentNB.Public__c , ParentId = CommentNB.ParentID__c );
// Ajoute le Commentaire comSF dans la liste de commentaire ComListSF
comSF.Id = CommentNB.CommentSF_ID__c;
ComListSF.add(comSF);
insert ComListSF;
While you inserting the record Salesforce will not allow you to declare the Id for the record. Record Id will be generated by Salesfroce automatically on Insertions.
If you want to link these two case comment create a custom field where you have to populate the CommentNB.CommentSF_ID__c to track the related case comments.
Thanks,
Maharajan.C