Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
1255 Vizualizări

Hello,

Our projects are linked to analytical accounts. When the project is completed, we archive it, but the associated analytical account is often forgotten to be archived.

I would like to create an automated action to automatically archive an analytical account when the related project is archived.

I have started but I am stuck on the Python code to enter.

Can you please help me?

Imagine profil
Abandonează
Autor

Thanks, this is perfect.

Cel mai bun răspuns

You can try this one:
1. follow my setting for the automatedd action and add this code

analytic = record.analytic_account_id
if analytic and not record.active:
    analytic.write(dict(active = False))


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
apr. 24
2016
1
sept. 23
1914
5
iul. 20
5802
0
mar. 17
3021
0
oct. 21
1844