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
joblack44joblack44 

How to identify a case created through SSP ?

Hello,

 I created a custom validation rules on Case object that need to be different if the case is created through SSP.

 I desperately trying to find a way to distinguished case coming from SSP and case creating using standard salesforce UI.

 

 Any help would be appreciated

 

Regards,

 

Jonathan

SurekaSureka

Hi,

 

As of now, I am able to think of the below solution.

 

You can create a trigger in case object and access the url in the case object " ApexPages.currentPage().geturl();".

 

Self service portal will have this keyword in the url - "sserv".

 

With the help of the above keyword you can differentiate the case created in salesforce.

 

Hope this helps.

 

Thanks

joblack44joblack44

Hi,

 thanks for your help but I want to avoid  Apex.

 Isn't it possible by a validation rule ?

 

 

Still_WelshStill_Welsh

You could use the default origin in web to case settings  and write your rule based on that . You may need to add another option to your origin field in the case.