Skip to main content

I am trying to add a new task to a custom object using inline editing on a table. I have a custom object called ‘Airport’. on the skuid Airport page there is a tab that contains a table with tasks as the model. I am using the default green ‘+’ to add a new record. It creates the task, but does not relate it to the Airport. In the standard salesforce page, when I create a task from the airport it automatically sets the “Related To” to the correct airport. How do I get Skuid to set the ‘related to’ to the current Airport?

Thanks
Andy

It sounds like Task looks up to Airport. If that is the case you can add a condition to the Task model, where “Related To” is the value of the Id from the first row of the Airport model, and that should do the trick. Also make sure that you have selected the Airport field in your Task model.


For those following along at home - Andy had established the condition on the task model such that he was using field  What.Id (found by navigating through the Opportunity/Account object relationship to the ID field underneath).   This filters existing records fine, but does not prepopulate data in new records - since it is a read only field (being on the parent object).

What Andy needed to do was create a condition on the field  WhatId  (the lookup field directly on the Task object).

The dot makes all the difference.  


Thanks again Rob!