Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
1305 Weergaven

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
Annuleer
Auteur

Thanks, this is perfect.

Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
apr. 24
2075
1
sep. 23
1949
5
jul. 20
5871
0
mrt. 17
3049
0
okt. 21
1870