Hello guys,
I have a problem creating collections "Collect(clPlanejamentoErroRegistroEquipePlan; 1)", this code structure was working perfectly, but now, for this case, it is no longer accepting the name that I am passing to the collection, he says "the name is not valid, the identifier is not recognized".
ForAll(
clPlanejamentoEquipePlanIncluir;
If(
IsError(
Patch(
'[dbo].[EquipePlanejamento]';
Defaults('[dbo].[EquipePlanejamento]');
{
idEquipePlanejamento: If(
Max(
'[dbo].[EquipePlanejamento]';
idEquipePlanejamento
) >= 1;
Max(
'[dbo].[EquipePlanejamento]';
idEquipePlanejamento
) + 1;
1
);
idServidor: idServidor;
nrClasse: 4;
idDemanda: glPlanejamentoConsulta.Selected.idDemanda
}
)
) = true;
Collect(
clPlanejamentoErroRegistroEquipePlan;
1
);
Blank()
)
);;
If(
CountRows(clPlanejamentoErroRegistroEquipePlan) > 0;
Notify(
"Erro no Registro da Equipe de Planejamento, comunicar imediatamente o responsável!!! ";
NotificationType.Error
);;
Email.SendEmail(
Concatenate(
usuarioLogadoEmail;
";";
LookUp(
'[dbo].[Servidor]';
idFuncaoServidor = 6;
dsEmail
)
);
"Erro no registro da equipe de Planejamento da Demanda nº: " & varPlanejamentoIdPlanejamentoAtual & Now();
"Erro no registro da equipe de Planejamento da Demanda nº: " & varPlanejamentoIdPlanejamentoAtual & " - " & Now() & " - executor: " & usuarioLogadoNome & " | Id: " & usuarioLogadoIdServidor & " | Matrícula: " & usuarioLogadoMatricula & " - " & Self.Tooltip
);
Notify(
"Equipe de Planejamento registrada com sucesso!!! ";
NotificationType.Success
)
);;
Did they know what could be happening?
Does PowerApps have any limit on the number of variables / collections?
I hope you can help me.
Thanks,