Nível 1
Nível 2
Faça login na Comunidade
Faça logon para exibir todas as medalhas
Hi all,
I have a ask where i need the variable code to get the label of the list activity in alert (such as <%= instance.label %> ), without passing any variable in the list activity.
Thanks in advance,
Solucionado! Ir para a Solução.
Os tópicos ajudam a categorizar o conteúdo da comunidade e aumentam sua capacidade de descobrir conteúdo relevante.
Visualizações
respostas
Total de curtidas
Hi @Rch_ ,
To get the label of the List activity inside the alert activity's body email, Please use the below Javascript Code inside the Alert activity :-
<%
logInfo(instance.activities.readGroup[0].label)
vars.labelReadList=instance.activities.readGroup[0].label
%>
<p></p>
<p><%=vars.labelReadList %></p>
<!-- to print label of read list activity --!>
Hope this helps.
Regards,
Pravallika.
Try this:
instance.activities.alert[0].label = "X"
Is this what you pretend? I don't understand your problem at all
Hello @Rch_ , to get the label of the alert activity you can use
instance.activities.alert[0].label
With this, you can use it to save it in a variable:
In the Js code:
logInfo(instance.activities.alert[0].label)
vars.labelAlert=instance.activities.alert[0].label
With that in the variable vars.labelAlert you can use it in a query like this:
Hope this helps!
Visualizações
respostas
Total de curtidas
Hi @Rch_ ,
To get the label of the List activity inside the alert activity's body email, Please use the below Javascript Code inside the Alert activity :-
<%
logInfo(instance.activities.readGroup[0].label)
vars.labelReadList=instance.activities.readGroup[0].label
%>
<p></p>
<p><%=vars.labelReadList %></p>
<!-- to print label of read list activity --!>
Hope this helps.
Regards,
Pravallika.
Hi @LakshmiPravallika ,
Am getting undefined as an alert. Is there something am missing to add in read list activity?
Thanks,
Visualizações
respostas
Total de curtidas
Hello, @Rch_. Following @LakshmiPravallika's solution, I've tried the same but instead of writing
<%
logInfo(instance.activities.readGroup[0].label)
vars.labelReadList=instance.activities.readGroup[0].label
%>
Inside the HTML content, I've used that code inside the Initialization script of the alert:
This solution worked for me. I hope this helps.
Visualizações
Curtida
respostas
Visualizações
Curtida
respostas