콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
1388 화면

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
2159
1
9월 23
2017
5
7월 20
5940
0
3월 17
3193
0
10월 21
1945