コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
1294 ビュー

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?

アバター
破棄
著作者

Thanks, this is perfect.

最善の回答

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


アバター
破棄
関連投稿 返信 ビュー 活動
3
4月 24
2059
1
9月 23
1939
5
7月 20
5866
0
3月 17
3047
0
10月 21
1868