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
scriptagentscriptagent 

dynamic values / requests

Hi,
 
I have already created a custom object, which has a price field.
Now I want to include a logic, which checks what profile the currently user has and depending on the profile, the price-edit-rule dynamically allocates.  
 
Is there a way to develop such a thing with Salesforce options ? Or do I have to use my own database requests and pages ?
 
Thank you very much! Peter
RickyGRickyG
Peter -

Not sure what you mean by the price-edit rule dynamically allocates.  Do you mean you only want the user to be able to edit the rule if the user has a certain profile.  You would use field level security for this - should do the job.

If you mean you want a calculation based on the price to occur based on profile, you can discover the profile with a merge field in a formula and calculate a value based on that.

Hope this helps.