Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1279 Представления

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


Аватар
Отменить
Related Posts Ответы Просмотры Активность
3
апр. 24
2045
1
сент. 23
1931
5
июл. 20
5856
0
мар. 17
3043
0
окт. 21
1860