You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to set custom fields using #tracked method, however, when I create an activity using #create_activity method, custom fields are just ignored
Something similar happened to me where it wouldn't save the activity when I sent a custom field. My fix was to use a different function I found as an answer to another issue.
In this example, my custom field is project_id which is a belongs_to association with the activity. So on creating a new project I added this line:
Quite ugly but am working on a way to clean it syntax.
Btw, @project is here twice as the trackable and the project because it is for creating the project. In all other instances @project will be under the project column not trackable.
You are right that create_activity does not allow passing custom attributes, so it's a potential improvement to be made. @owenstrevor has the right idea about directly creating the model
It is possible to set custom fields using #tracked method, however, when I create an activity using #create_activity method, custom fields are just ignored
I have this method in Application controller and I have added enterprise_id field to database.
The text was updated successfully, but these errors were encountered: