Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1281 Zobrazení

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?

Avatar
Zrušit
Autor

Thanks, this is perfect.

Nejlepší odpověď

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))


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
dub 24
2052
1
zář 23
1931
5
čvc 20
5862
0
bře 17
3043
0
říj 21
1861