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
ErikduvetErikduvet 

Remove Account/Contact From Case is autopopulated through Partner Portal

Hi,

I am facing an issue related to the autopopulation of the Account and Contact on Case when it is created by a Partner Portal User (User License: Partner Community). Currently system populates these fields based on the following:

  • Account: The User's Contact's Account
  • Contact: The User's Contact

I would like for these values not to be defined automatically since in my scenario this is not at all the intention here. I tried a Trigger with a @future method but this required a page refresh and was hence not good enough.
I also tried implementing a Process using the Process Builder with the following specs:

  • Object: Case
  • Criteria: [Case].ContactId = $User.ContactId
  • Action:
    • Update Records
    • Account ID - Global Constant - $GlobalConstant.Null
    • Contact ID - Global Constant - $GlobalConstant.Null
I can see in the Debug Logs that the Process executes but I cannot see anything i nregard to the "path" it takes, if it goes into the True branch of the criteria or if when it executes, the AccountId and ContactId has not yet been set and hence it goes down the False Branch.

Has anyone ran into similar issue with the Partner Portal and have found a workaround? I have contacted Salesforce Support regarding this asking for a standard Setting to disable this, but this was not available and he could not provide any further assistance.

Ciao!