Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Can I change field data within a CF


Recommended Posts

This may seem like a stupid question, but I've not seen any clear description about what I can (and can not) do within a custom function.


I am using a variation of Ray Cologon's excellent SuperLog function to retain a record of what users have changed from and to.


Within this datalogging function is it possible to set a field value to something? Ideally, if this custom function gets triggered, I would change the status field (same record) to "999" of something to that affect.


Is this possible? Perhaps there is another way to skin this cat? It just seemed like a great idea to implement the set value function within the very script that is already getting triggered when a value gets changed.


Thanks for any & all help,


Alan Barker

Link to comment
Share on other sites

Custom Functions are not verbs; in and of themselves they don't DO anything. You have to invoke them, either within a script or in a field definition.


If it's within a script, you should be able to Set Field to your heart's content the old-fashioned way.


If it's within a field def, you may be able to create an auto-enter calc option on other fields to cause them to auto-update in response to changes in the calculation field that uses the custom function within its field definition.


And of course the calculation field that uses the custom function directly within its definition would change automatically, as calc fields do, if the custom function precipitates a different result from the overall formula.

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Terms of Use