I don't seem to find where exactly ContentVersion, ContentDocument and ContentDocumentLink are somehow relates to Case object.
I'm looking for a way to locate and download all attachments based on a query where my input is Case number or case ID
Thanks in advance
I am facing issue "portal users cannot own partner accounts" but actually i am using customer portal and when i am creating a new contact record in customer portal geting this error.
I build the lightning page and in the page i have the create contact botton once i save the rec it showing the error message below is the screen shot for reference.
Portal users cannot own partner accounts with Customer community plus License. How to avoid this error.
I am getting this error. Is there any way to avoid it.
Any help would be much appreciated
When I checked the debug logs I found that I am getting this error 'portal users cannot own partner accounts'.
So can anyone help me how to resolve this error
How can I create a contact in community where account should always be the account of the community's user (who is creating the contact)
I created an apex page with this code:
<apex:enhancedList type="EmailMessage" height="600" />
After that, I created a Visual Force tab. But, the solution didn't work.
Can you help us?
I am trying to create a Contact via a portal user on Force.com Sites, but it's giving me this error. Can anyone tell me why this error is occurring and how to fix the problem?
System.DmlException: Insert failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, portal users cannot own partner accounts: 
I also get an error when I try to save the Account of the portal user normally through Salesforce:
Cannot Assign Portal Account or Contact to Portal User
You cannot assign a Portal Account or Contact to a Portal user. Please choose a different user.
But I do not get any error creating the contact through Salesforce itself.
Here is the code I am using:
Contact p = new Contact();
p.FirstName = FirstName;
p.LastName = LastName;
p.Email = 'email@example.com';
p.AccountId = core.getUserAccount().Id; // This custom global method gets the account id (successfully)
Thanks in advance