Nivel 1
Nivel 2
Iniciar sesión en la comunidad
Iniciar sesión para ver todas las insignias
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,
¡Resuelto! Ir a solución.
Los temas ayudan a categorizar el contenido de la comunidad e incrementan la posibilidad de encontrar contenido relevante.
Vistas
Respuestas
Total de me gusta
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.
Vistas
Respuestas
Total de me gusta
Try this:
instance.activities.alert[0].label = "X"
Is this what you pretend? I don't understand your problem at all
Vistas
Respuestas
Total de me gusta
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].labelWith that in the variable vars.labelAlert you can use it in a query like this:
Hope this helps!
Vistas
Respuestas
Total de me gusta
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.
Vistas
Respuestas
Total de me gusta
Hi @LakshmiPravallika ,
Am getting undefined as an alert. Is there something am missing to add in read list activity?
Thanks,
Vistas
Respuestas
Total de me gusta
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.
Vistas
Respuestas
Total de me gusta
Vistas
Respuestas
Total de me gusta
Vistas
me gusta
Respuestas