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
jadenjaden 

Dynamic field update Ideas

HI, 

 

I have a request from a client and I am looking for ideas.  

 

They want to be able to enter into 5 text fields a Task Source Field (api field name) and a destination Project Field.  Based on these entries, the trigger would get the value of the source field and update the value of the destination field on Project.

 

So the field would be Due_Date__c; BLND_Start_Survey_Time__c 

 

However, if the user picks the wrong fields it could be; Due_Date__c; Status__c which is a date to picklist or if they type it in wrong I might not find it.  

 

Based on this:

I would have to validate that what they have typed\pasted in to the text fields are valid fields on the objects, that’s not too bad. 

Then I would have to do the comparisons to be sure the types are compatible (date to date and not date to picklist).

 

If not valid, kick out with message otherwise; go after values and do updates.

 

Any ideas, seems like a lot of describe code. 

 

Thanks and Happy Thanksgiving.