Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1325 Tampilan

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
Buang
Penulis

Thanks, this is perfect.

Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
3
Apr 24
2111
1
Sep 23
1978
5
Jul 20
5895
0
Mar 17
3117
0
Okt 21
1882