Pass contact Id into new task page include

  • 1
  • Question
  • Updated 1 year ago
  • In Progress
As a user I want to be able to create a new task from a contact page in a page include, and for the Name (WhoId) to be populated with the contact Id.

I don't understand how to pass through the Contact Id, and populate the WhoId field.

See my screenshots below for what has been attempted to far, seniorcontactsview is my contact page, and task_page_create is my page include for new task record.
Photo of Glenn Daly

Glenn Daly

  • 1,270 Points 1k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Looks right to me... you could try WhoId= {{$Param.id}}.
Also try changing the param name from WhoId to something else.
Photo of Janick

Janick

  • 916 Points 500 badge 2x thumb
Could you try removing the field condition and changing the model condition to "WhoId = (param) WhoId"?
The ID field on Tasks is readonly and cannot be populated.

let me know if that helped,

Janick