Glad to hear it is working so far. On the step to Create the new Task, did you make sure to populate the Regarding (Leads) like my screenshot above? If you did, then the Regarding Field on your task should be populated to the lead as expected. The regarding field would be set as follows.
You can grab the Lead ID, which is the unique identifier for the record, from your dynamic content off the trigger.
In terms of this being created immediately, Power Automate flows always run in the background. This means there is always going to be a delay of 1-5 seconds before the task is created and associated to the lead. If you need it to be immediate, then you probably want to use a Real-Time CRM workflow to create the task.
That would be a relatively easy setup and task creation, and it has the benefit that it can run during the creation process of the lead. This would ensure it shows up on the timeline as soon as the lead is created without any delay.
-----------------------------------------------------------------------------------------------
Que bom saber que está funcionando até agora.
Na etapa de Criar a nova Tarefa, você verificou se preencheu o campo Referente (Leads) como na minha captura de tela acima? Se fez isso, então o campo Referente na sua tarefa deve estar preenchido com o lead conforme esperado. O campo referente seria definido da seguinte forma:
leads({leadid})
Você pode obter o ID do Lead, que é o identificador único do registro, a partir do conteúdo dinâmico do gatilho.
Quanto à criação imediata, os fluxos do Power Automate sempre são executados em segundo plano. Isso significa que sempre haverá um atraso de 1 a 5 segundos antes que a tarefa seja criada e associada ao lead. Se você precisa que seja imediato, então provavelmente vai querer usar um workflow em tempo real do CRM para criar a tarefa.
Essa seria uma configuração relativamente fácil e a criação da tarefa teria a vantagem de ser executada durante o processo de criação do lead. Isso garantiria que apareça na linha do tempo assim que o lead for criado, sem nenhum atraso.